Fix TNT being stuck on head

This commit is contained in:
AlexTheCoder 2017-05-12 15:07:48 -04:00
parent 35ed1099f9
commit 130d1dc05e

View File

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