From ef66b8c1f1fd1ecf0e7807fdbc6294539b8ee8d8 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Wed, 23 Apr 2025 18:28:58 +0200 Subject: [PATCH] Fix HotbarKit.onInventoryClick not resetting the cursor item --- .../src/de/steamwar/fightsystem/fight/HotbarKit.java | 1 + 1 file changed, 1 insertion(+) diff --git a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java index 193d14ea..50144651 100644 --- a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java +++ b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/fight/HotbarKit.java @@ -119,6 +119,7 @@ public class HotbarKit extends Kit { Player player = (Player) event.getWhoClicked(); click(player, slot, event); + player.setItemOnCursor(null); } private void click(Player player, int slot, Cancellable event) {