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. --- .../com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src') 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