From 0267a315fcaf07bb1740357e34adf2a72ca04dd7 Mon Sep 17 00:00:00 2001 From: Oliver-makes-code Date: Tue, 13 Feb 2024 13:33:43 -0600 Subject: [PATCH] Set Item mixin as cancellable --- .../main/java/dev/sweetberry/wwizardry/mixin/Mixin_Item.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/dev/sweetberry/wwizardry/mixin/Mixin_Item.java b/common/src/main/java/dev/sweetberry/wwizardry/mixin/Mixin_Item.java index 689d379f..0d114b08 100644 --- a/common/src/main/java/dev/sweetberry/wwizardry/mixin/Mixin_Item.java +++ b/common/src/main/java/dev/sweetberry/wwizardry/mixin/Mixin_Item.java @@ -11,7 +11,8 @@ public class Mixin_Item { @Inject( method = "getCraftingRemainingItem", - at = @At("RETURN") + at = @At("RETURN"), + cancellable = true ) private void wwizardry$setRemainder(CallbackInfoReturnable cir) { var self = (Item)(Object)this;