From 2e3575db69f603c851a7bd197801c66099ba42c3 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Mon, 13 Jun 2022 20:31:38 +0200 Subject: [PATCH] Fix HotbarKit Signed-off-by: Lixfel --- .../src/de/steamwar/fightsystem/fight/HotbarKit.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java b/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java index aba29c7..bf0a686 100644 --- a/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java +++ b/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java @@ -19,6 +19,7 @@ package de.steamwar.fightsystem.fight; +import de.steamwar.core.Core; import de.steamwar.fightsystem.ArenaMode; import de.steamwar.fightsystem.Config; import de.steamwar.fightsystem.FightSystem; @@ -86,7 +87,7 @@ public class HotbarKit extends Kit { @EventHandler public void handlePlayerInteract(PlayerInteractEvent event) { - if(event.getAction() == Action.PHYSICAL || event.getHand() != EquipmentSlot.HAND) + if(event.getAction() == Action.PHYSICAL || (Core.getVersion() > 8 && event.getHand() != EquipmentSlot.HAND)) return; Player player = event.getPlayer();