SteamWar/FightSystem
Archiviert
13
1

Fix HotbarKit
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-06-13 20:31:38 +02:00
Ursprung 58b8d1eb69
Commit 2e3575db69

Datei anzeigen

@ -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();