From 8201a6e93967622078167f5f6b7ee58ddf99fd04 Mon Sep 17 00:00:00 2001 From: Christian Brintnall Date: Fri, 31 Jul 2026 17:02:54 -0700 Subject: [PATCH] Remove ItemStack duplication --- .../farm_and_charm/core/block/entity/MincerBlockEntity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/main/java/net/satisfy/farm_and_charm/core/block/entity/MincerBlockEntity.java b/common/src/main/java/net/satisfy/farm_and_charm/core/block/entity/MincerBlockEntity.java index 21e37efa..8b9ca67b 100644 --- a/common/src/main/java/net/satisfy/farm_and_charm/core/block/entity/MincerBlockEntity.java +++ b/common/src/main/java/net/satisfy/farm_and_charm/core/block/entity/MincerBlockEntity.java @@ -111,8 +111,7 @@ public boolean isEmpty() { private void dropItemsInOutputSlot(Level level, BlockPos pos, BlockState state, MincerBlockEntity mincer) { Direction direction = state.getValue(MincerBlock.FACING).getClockWise(); if (!level.isClientSide() && !this.stacks.get(OUTPUT_SLOT).isEmpty()) { - ItemStack droppedStack = new ItemStack(mincer.stacks.get(OUTPUT_SLOT).getItem()); - droppedStack.setCount(mincer.stacks.get(OUTPUT_SLOT).getCount()); + ItemStack droppedStack = mincer.stacks.get(OUTPUT_SLOT); this.stacks.set(OUTPUT_SLOT, ItemStack.EMPTY); Vec3 vec3d = Vec3.atCenterOf(pos); Vec3 vec3d2 = vec3d.relative(direction, 0.7);