diff --git a/item/bukkit/src/main/java/it/angrybear/yagl/listeners/PersistentListener.java b/item/bukkit/src/main/java/it/angrybear/yagl/listeners/PersistentListener.java index 978e7dce..7b707b2d 100644 --- a/item/bukkit/src/main/java/it/angrybear/yagl/listeners/PersistentListener.java +++ b/item/bukkit/src/main/java/it/angrybear/yagl/listeners/PersistentListener.java @@ -16,6 +16,7 @@ import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.event.player.PlayerItemConsumeEvent; import org.bukkit.event.player.PlayerItemDamageEvent; +import org.bukkit.inventory.EquipmentSlot; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.PlayerInventory; import org.jetbrains.annotations.NotNull; @@ -64,6 +65,7 @@ protected void on(PlayerDeathEvent event) { @EventHandler protected void on(PlayerInteractEvent event) { + if (event.getHand() != EquipmentSlot.HAND) return; Player player = event.getPlayer(); interactPersistentItem(event.getItem(), player, event.getAction(), cancelled(event)); }