SteamWar/FightSystem
Archiviert
13
1

Debug HotbarKit
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2023-02-08 22:51:09 +01:00
Ursprung 239c0bf5f6
Commit 5b02e98c35

Datei anzeigen

@ -93,6 +93,7 @@ public class HotbarKit extends Kit {
Player player = event.getPlayer(); Player player = event.getPlayer();
int slot = player.getInventory().getHeldItemSlot(); int slot = player.getInventory().getHeldItemSlot();
Kit activeKit = activeKits.get(player); Kit activeKit = activeKits.get(player);
System.out.println(event.getAction().name());
if(!(activeKit instanceof HotbarKit) || PersonalKitCreator.inKitCreator(player) || activeKit.getInventory()[slot] == null) if(!(activeKit instanceof HotbarKit) || PersonalKitCreator.inKitCreator(player) || activeKit.getInventory()[slot] == null)
return; return;