Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-12-27 16:40:14 +01: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:
Ursprung
3f0a2ae833
Commit
ec6a356b4e
@ -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();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren