Fix tnt in SG being usable during DM invul
This commit is contained in:
parent
21d10e4bec
commit
a0676b7bcf
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user