mirror of
https://github.com/GeyserExtensionists/GeyserModelEnginePackGenerator.git
synced 2025-12-19 23:19:20 +00:00
Add a property to allow to disable pack auto load
This commit is contained in:
@@ -64,8 +64,10 @@ public class ExtensionMain implements Extension {
|
|||||||
|
|
||||||
@Subscribe
|
@Subscribe
|
||||||
public void onPackLoad(GeyserLoadResourcePacksEvent event) {
|
public void onPackLoad(GeyserLoadResourcePacksEvent event) {
|
||||||
|
if (Boolean.parseBoolean(System.getProperty("geyser-model-engine-auto-load-pack", "true"))) {
|
||||||
event.resourcePacks().add(generatedPackZip);
|
event.resourcePacks().add(generatedPackZip);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user