From 7f8f1490abb086f85bef9379557b8431345f5a8f Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sat, 16 Nov 2019 15:01:27 +0100 Subject: [PATCH] HotbarGUI hotfix --- .../src/de/steamwar/fightsystem/listener/HotbarGUIListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FightSystem_Main/src/de/steamwar/fightsystem/listener/HotbarGUIListener.java b/FightSystem_Main/src/de/steamwar/fightsystem/listener/HotbarGUIListener.java index fb6f96c..738c25a 100644 --- a/FightSystem_Main/src/de/steamwar/fightsystem/listener/HotbarGUIListener.java +++ b/FightSystem_Main/src/de/steamwar/fightsystem/listener/HotbarGUIListener.java @@ -15,13 +15,13 @@ public class HotbarGUIListener extends BasicListener { @EventHandler public void handlePlayerInteract(PlayerInteractEvent event) { Player player = event.getPlayer(); - event.setCancelled(true); if(event.getItem() != null) { FightTeam fightTeam = Fight.getPlayerTeam(player); if(fightTeam == null) return; + event.setCancelled(true); ItemMeta itemMeta = event.getItem().getItemMeta(); String displayName = itemMeta.getDisplayName();