From c626ca7750e642a9002d1a34300639195d9f8689 Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 19 Dec 2020 00:08:34 +0800 Subject: Version 1.1.0: enhance disabling of fish schooling. --- gradle.properties | 2 +- .../com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gradle.properties b/gradle.properties index 505d930..2461e6a 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.0.0 +mod_version=1.1.0 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 b48b2b1..6808596 100644 --- a/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java +++ b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java @@ -8,9 +8,6 @@ import net.minecraft.world.World; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Overwrite; import org.spongepowered.asm.mixin.Shadow; -import org.spongepowered.asm.mixin.injection.At; -import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; @Mixin(SchoolingFishEntity.class) public abstract class DisableFishSchooling extends FishEntity { @@ -34,4 +31,13 @@ public abstract class DisableFishSchooling extends FishEntity { } } } + + /** + * @reason To disable SchoolingFish schooling. + * @author trueKeuin + */ + @Overwrite + protected void initGoals() { + super.initGoals(); + } } -- cgit v1.2.3