Fix TNT being stuck on head
This commit is contained in:
parent
35ed1099f9
commit
130d1dc05e
@ -1420,7 +1420,7 @@ public class CastleAssault extends TeamGame
|
||||
|
||||
UtilTextBottom.display(GetTeam(player).GetColor() + player.getName() + " has the TNT!", UtilServer.getPlayers());
|
||||
UtilFirework.playFirework(player.getEyeLocation(), Type.BURST, Color.RED, false, false);
|
||||
if (player.getInventory().getHelmet() == null || player.getInventory().getHelmet().getType() != Material.TNT)
|
||||
if (player.getInventory().getHelmet() == null || player.getInventory().getHelmet().getType() == Material.AIR)
|
||||
{
|
||||
player.getInventory().setHelmet(_wearableTnt.build());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user