diff options
author | Keuin <[email protected]> | 2020-12-19 00:08:34 +0800 |
---|---|---|
committer | keuin <[email protected]> | 2020-12-19 00:08:34 +0800 |
commit | c626ca7750e642a9002d1a34300639195d9f8689 (patch) | |
tree | 7be5ddb709b32da7dbaf0cd1c89bd8f84dca3c8b | |
parent | 7b712c6b88017e5615c2b9d438d5c6aed6c25bf3 (diff) |
Version 1.1.0: enhance disabling of fish schooling.
-rw-r--r-- | gradle.properties | 2 | ||||
-rw-r--r-- | src/main/java/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(); + } } |