Skip to content

Commit

Permalink
Set Item mixin as cancellable
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver-makes-code committed Feb 13, 2024
1 parent 951bbec commit 0267a31
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
public class Mixin_Item {
@Inject(
method = "getCraftingRemainingItem",
at = @At("RETURN")
at = @At("RETURN"),
cancellable = true
)
private void wwizardry$setRemainder(CallbackInfoReturnable<Item> cir) {
var self = (Item)(Object)this;
Expand Down

0 comments on commit 0267a31

Please sign in to comment.