"packs" directory auto-create (#484)

* "packs" directory auto-create

* cleaned indentation in ResourcePack.java

* Cleaned ResourcePack.java

* Another cleanup

I hate editor on github.

* Yet another

* Another indentation cleanup
This commit is contained in:
Vesek 2020-05-05 19:49:38 +02:00 committed by GitHub
parent 3f0a2ae833
commit ec6a356b4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,11 @@ public class ResourcePack {
}
File directory = new File("packs");
if (!directory.exists()) {
directory.mkdir();
}
for(File file : directory.listFiles()) {
if(file.getName().endsWith(".zip") || file.getName().endsWith(".mcpack")) {
ResourcePack pack = new ResourcePack();