3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-10-02 08:00:07 +02:00

"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
Dieser Commit ist enthalten in:
Vesek 2020-05-05 19:49:38 +02:00 committet von GitHub
Ursprung 3f0a2ae833
Commit ec6a356b4e
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 4AEE18F83AFDEB23

Datei anzeigen

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