From f287ea9dbb54b96c15f441b7f72e7d6527704ded Mon Sep 17 00:00:00 2001 From: Keuin Date: Sat, 19 Dec 2020 09:41:34 +0800 Subject: Version 1.2.0: support disabling the spawn of wandering traders. --- .../mixin/DisableWanderingTraderSpawning.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/main/java/com/keuin/ohmyvanillamc/mixin/DisableWanderingTraderSpawning.java (limited to 'src/main/java/com/keuin/ohmyvanillamc') 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() { + } + +} -- cgit v1.2.3