From 75f26f4ed9011e9dd12f5b49b26b94f8f4dacac1 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 15 Jan 2021 00:42:54 +0800 Subject: Version 1.4.0: supports reintroducing llama item duplication. Add configuration file. --- src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java') diff --git a/src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java index ea97857..d14fc3e 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java +++ b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java @@ -16,7 +16,7 @@ public class DisablePhantomSpawning { */ @Inject(method = "spawn", at = @At("HEAD"), cancellable = true) public void spawn(ServerWorld serverWorld, boolean spawnMonsters, boolean spawnAnimals, CallbackInfoReturnable cir) { - if (OhMyVanillaMinecraft.disablePhantomSpawning) + if (OhMyVanillaMinecraft.getConfiguration().isDisablePhantomSpawning()) cir.setReturnValue(0); } } -- cgit v1.2.3