commit 98c98f55bbc721f8ba0691ab5062fcf160363ed0 parent 02d9f94a5af77dc543c2da8771bfadd2a6c7f1b5 Author: Amb0s <ambos@disroot.org> Date: Fri, 25 Aug 2023 20:55:37 +0200 Added (disabled) workaround for #13 Diffstat:
A | src/main/java/turniplabs/simpletech/mixin/EntityItemMixin.java | | | 16 | ++++++++++++++++ |
1 file changed, 16 insertions(+), 0 deletions(-)
diff --git a/src/main/java/turniplabs/simpletech/mixin/EntityItemMixin.java b/src/main/java/turniplabs/simpletech/mixin/EntityItemMixin.java @@ -0,0 +1,16 @@ +package turniplabs.simpletech.mixin; + +import net.minecraft.core.entity.EntityItem; +import org.spongepowered.asm.mixin.Mixin; +import org.spongepowered.asm.mixin.injection.At; +import org.spongepowered.asm.mixin.injection.Inject; +import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; + +@Mixin(value = EntityItem.class, remap = false) +public class EntityItemMixin { + @Inject(method = "clumpToNearbyStack", at = @At("HEAD"), + require = 0, cancellable = true) + private void removeItemEntityStacking(CallbackInfo ci) { + ci.cancel(); + } +}