summaryrefslogtreecommitdiff
path: root/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java
diff options
context:
space:
mode:
authorKeuin <[email protected]>2020-12-19 00:08:34 +0800
committerkeuin <[email protected]>2020-12-19 00:08:34 +0800
commitc626ca7750e642a9002d1a34300639195d9f8689 (patch)
tree7be5ddb709b32da7dbaf0cd1c89bd8f84dca3c8b /src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java
parent7b712c6b88017e5615c2b9d438d5c6aed6c25bf3 (diff)
Version 1.1.0: enhance disabling of fish schooling.
Diffstat (limited to 'src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java')
-rw-r--r--src/main/java/com/keuin/ohmyvanillamc/mixin/DisableFishSchooling.java12
1 files changed, 9 insertions, 3 deletions
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();
+ }
}