Fix tnt in SG being usable during DM invul

This commit is contained in:
libraryaddict 2015-11-04 21:44:10 +13:00
parent 21d10e4bec
commit a0676b7bcf

View File

@ -1802,6 +1802,12 @@ public abstract class SurvivalGames extends Game
Player player = _tntMap.remove(event.getEntity());
if (_deathMatchTeleported && _deathMatchTime > 0)
{
event.setCancelled(true);
return;
}
/*
* CustomExplosion explosion = new
* CustomExplosion(getArcadeManager().GetDamage(),
@ -1844,7 +1850,7 @@ public abstract class SurvivalGames extends Game
return;
}
if (!Manager.GetGame().CanThrowTNT(player.getLocation()))
if (!Manager.GetGame().CanThrowTNT(player.getLocation()) || (_deathMatchTeleported && _deathMatchTime > 0))
{
// Inform
UtilPlayer.message(