diff --git a/src/main/java/dev/hephaestus/glowcase/block/ItemAcceptorBlock.java b/src/main/java/dev/hephaestus/glowcase/block/ItemAcceptorBlock.java index 6366494..284d14c 100644 --- a/src/main/java/dev/hephaestus/glowcase/block/ItemAcceptorBlock.java +++ b/src/main/java/dev/hephaestus/glowcase/block/ItemAcceptorBlock.java @@ -88,7 +88,7 @@ protected ItemActionResult onUseWithItem(ItemStack stack, BlockState state, Worl if (!world.isClient() && !world.getBlockTickScheduler().isQueued(pos, this) && be.isItemAccepted(stack)) { // Remove items ItemStack newStack = stack.copyWithCount(be.count); - stack.setCount(stack.getCount() - be.count); + stack.decrementUnlessCreative(be.count, player); // Schedule redstone pulse world.scheduleBlockTick(pos, this, 2);