From dbcf893078ffa8e7a51b66b76bfc1236229c1e2b Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 5 Jun 2022 13:55:32 +0200 Subject: [PATCH] Fix HotbarKit pressure plates Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/HotbarKit.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java b/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java index 4b2f00d..3e41c98 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java @@ -28,6 +28,7 @@ import de.steamwar.fightsystem.states.StateDependentListener; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; +import org.bukkit.event.block.Action; import org.bukkit.event.player.PlayerInteractEvent; import org.bukkit.inventory.ItemStack; import org.bukkit.inventory.meta.ItemMeta; @@ -84,6 +85,9 @@ public class HotbarKit extends Kit { @EventHandler public void handlePlayerInteract(PlayerInteractEvent event) { + if(event.getAction() == Action.PHYSICAL) + return; + Player player = event.getPlayer(); int slot = player.getInventory().getHeldItemSlot(); Kit activeKit = activeKits.get(player);