diff --git a/src/main/java/me/thegiggitybyte/ttc/gui/TrashCanGuiDescription.java b/src/main/java/me/thegiggitybyte/ttc/gui/TrashCanGuiDescription.java index 6b0e4f5..9ef30d5 100644 --- a/src/main/java/me/thegiggitybyte/ttc/gui/TrashCanGuiDescription.java +++ b/src/main/java/me/thegiggitybyte/ttc/gui/TrashCanGuiDescription.java @@ -39,15 +39,15 @@ public TrashCanGuiDescription(int syncId, PlayerInventory playerInventory, Scree @Override public ItemStack onSlotClick(int slotIndex, int button, SlotActionType action, PlayerEntity player) { Slot trashSlot = this.slots.get(0); - boolean wasItemDeleted = false; + boolean itemWasDeleted = false; if ((slotIndex == 0) && ((action == SlotActionType.PICKUP) & (button == 0))) { - wasItemDeleted = tryCursorDelete(trashSlot, player); + itemWasDeleted = tryCursorDelete(trashSlot, player); } else if ((action == SlotActionType.QUICK_MOVE) && (slotIndex != 0)) { // Shift-click. - wasItemDeleted = tryQuickDelete(trashSlot, this.slots.get(slotIndex)); + itemWasDeleted = tryQuickDelete(trashSlot, this.slots.get(slotIndex)); } - if (wasItemDeleted) { + if (itemWasDeleted) { trashSlot.markDirty(); player.inventory.markDirty();