quick fix : Unused assignment

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent 6bf15fdfe3
commit 2b6b01314d
34 files changed
+54 -63

No files matched your search

@@ -132,7 +132,7 @@ public abstract class HarvestTool extends ToolCore {
boolean used = false;
int hotbarSlot = player.inventory.currentItem;
int itemSlot = hotbarSlot == 0 ? 8 : hotbarSlot + 1;
ItemStack nearbyStack = null;
ItemStack nearbyStack;
if (hotbarSlot < 8) {
nearbyStack = player.inventory.getStackInSlot(itemSlot);