Skip to content

Commit

Permalink
🐛 wrong InventoryType check
Browse files Browse the repository at this point in the history
  • Loading branch information
b8daniel committed Jul 13, 2022
1 parent 43387b9 commit 202e00c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ShootGun : Listener {
if (
e.hand != EquipmentSlot.HAND ||
e.action == Action.PHYSICAL ||
!(e.player.inventory.type != InventoryType.CRAFTING ||
!(e.player.inventory.type == InventoryType.CRAFTING ||
e.player.inventory.type == InventoryType.CREATIVE) ||
ReloadGun.currentlyReloading.containsKey(e.player.uniqueId)
) return
Expand Down

0 comments on commit 202e00c

Please sign in to comment.