Skip to content
This repository has been archived by the owner on Nov 20, 2023. It is now read-only.

Commit

Permalink
bugfix: quick-move from trash slot deletes item
Browse files Browse the repository at this point in the history
Fixed: Shift-clicking an item in the trash slot would delete it instead of moving the item back to the player inventory.
  • Loading branch information
Giggitybyte committed Feb 7, 2021
1 parent 29bfd41 commit e6b13c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ yarn_mappings=1.16.5+build.3
loader_version=0.11.1

# Mod Properties
mod_version = 1.1.0
mod_version = 1.1.1
maven_group = me.thegiggitybyte
archives_base_name = ttc

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public ItemStack onSlotClick(int slotIndex, int button, SlotActionType action, P
wasItemDeleted = true;
}

} else if (action == SlotActionType.QUICK_MOVE) { // Shift-click.
} else if ((action == SlotActionType.QUICK_MOVE) && (slotIndex != 0)) { // Shift-click.
Slot selectedSlot = this.slots.get(slotIndex);
ItemStack selectedStack = selectedSlot.getStack();

Expand Down

0 comments on commit e6b13c6

Please sign in to comment.