diff options
author | Keuin <[email protected]> | 2020-12-19 09:41:34 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2020-12-19 09:41:34 +0800 |
commit | f287ea9dbb54b96c15f441b7f72e7d6527704ded (patch) | |
tree | 054929d00737a1518c3f8698fe0e647415ea7a67 /src | |
parent | c626ca7750e642a9002d1a34300639195d9f8689 (diff) |
Version 1.2.0: support disabling the spawn of wandering traders.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/keuin/ohmyvanillamc/mixin/DisableWanderingTraderSpawning.java | 18 | ||||
-rw-r--r-- | src/main/resources/ohmyvanillamc.mixins.json | 3 |
2 files changed, 20 insertions, 1 deletions
diff --git a/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableWanderingTraderSpawning.java b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableWanderingTraderSpawning.java new file mode 100644 index 0000000..c7049d8 --- /dev/null +++ b/src/main/java/com/keuin/ohmyvanillamc/mixin/DisableWanderingTraderSpawning.java @@ -0,0 +1,18 @@ +package com.keuin.ohmyvanillamc.mixin; + +import net.minecraft.world.WanderingTraderManager; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.Overwrite; + +@Mixin(WanderingTraderManager.class) +public class DisableWanderingTraderSpawning { + + /** + * @reason disable ticking + * @author trueKeuin + */ + @Overwrite + public void tick() { + } + +} diff --git a/src/main/resources/ohmyvanillamc.mixins.json b/src/main/resources/ohmyvanillamc.mixins.json index c6ef57f..c58fff9 100644 --- a/src/main/resources/ohmyvanillamc.mixins.json +++ b/src/main/resources/ohmyvanillamc.mixins.json @@ -4,7 +4,8 @@ "package": "com.keuin.ohmyvanillamc.mixin", "compatibilityLevel": "JAVA_8", "mixins": [ - "DisableFishSchooling" + "DisableFishSchooling", + "DisableWanderingTraderSpawning" ], "injectors": { "defaultRequire": 1 |