Skip to content

Commit

Permalink
Why did this get put in the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
f-raZ0R committed Oct 31, 2024
1 parent 20f415d commit f61a9e4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@Mixin(PlayerInventory.class)
public abstract class PlayerInventoryMixin {

@Inject(at = @At("HEAD"), method = "addStack(Lnet/minecraft/item/ItemStack;)I")
@Inject(at = @At("HEAD"), method = "addStack(Lnet/minecraft/item/ItemStack;)I", cancellable = true)
private void addStack(ItemStack stack, CallbackInfoReturnable<Integer> callbackInfoReturnable) {
PlayerInventory playerInventory = (PlayerInventory) (Object) this;

Expand Down

0 comments on commit f61a9e4

Please sign in to comment.