Skip to content

Commit

Permalink
Fix #208
Browse files Browse the repository at this point in the history
  • Loading branch information
NichtStudioCode committed Nov 25, 2022
1 parent 5f42a36 commit 0cb1cb4
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class Wearable(val options: WearableOptions) : ItemBehavior() {
override fun handleInventoryClick(player: Player, itemStack: ItemStack, event: InventoryClickEvent) {
if ((event.click == ClickType.SHIFT_LEFT || event.click == ClickType.SHIFT_RIGHT)
&& event.view.isPlayerView()
&& event.clickedInventory != event.view.topInventory
&& player.inventory.getItem(options.armorType.equipmentSlot)?.takeUnlessAir() == null
&& !callArmorEquipEvent(player, EquipMethod.SHIFT_CLICK, null, itemStack)
) {
Expand Down

0 comments on commit 0cb1cb4

Please sign in to comment.