diff options
author | Keuin <[email protected]> | 2020-12-28 23:10:53 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2020-12-28 23:10:53 +0800 |
commit | 6f84d79bc8452a2e37644e6f0419477b70a09e69 (patch) | |
tree | b9d524ddd88ea29a8cd3879ec07ae76ac1db92c0 | |
parent | 4dad5fc27145593c14425b3e673b924155903585 (diff) |
-rw-r--r-- | gradle.properties | 2 | ||||
-rw-r--r-- | src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java | 2 | ||||
-rw-r--r-- | src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/gradle.properties b/gradle.properties index ec979de..414f89e 100644 --- a/gradle.properties +++ b/gradle.properties @@ -6,7 +6,7 @@ minecraft_version=1.15.2 yarn_mappings=1.15.2+build.17 loader_version=0.10.8 # Mod Properties -mod_version=1.3.0 +mod_version=1.3.1 maven_group=com.keuin.omvm archives_base_name=oh-my-vanilla-mc # Dependencies diff --git a/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java index 6808596..c30ab02 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java +++ b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java @@ -37,7 +37,7 @@ public abstract class DisableFishSchooling extends FishEntity { * @author trueKeuin */ @Overwrite - protected void initGoals() { + public void initGoals() { super.initGoals(); } } diff --git a/src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java index d5788c7..ea97857 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java +++ b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisablePhantomSpawning.java @@ -6,7 +6,7 @@ import net.minecraft.world.gen.PhantomSpawner; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; @Mixin(PhantomSpawner.class) public class DisablePhantomSpawning { @@ -15,8 +15,8 @@ public class DisablePhantomSpawning { * @author trueKeuin */ @Inject(method = "spawn", at = @At("HEAD"), cancellable = true) - public void spawn(ServerWorld serverWorld, boolean spawnMonsters, boolean spawnAnimals, CallbackInfo ci) { + public void spawn(ServerWorld serverWorld, boolean spawnMonsters, boolean spawnAnimals, CallbackInfoReturnable<Integer> cir) { if (OhMyVanillaMinecraft.disablePhantomSpawning) - ci.cancel(); + cir.setReturnValue(0); } } |