Fixed getRegion not returning null (functions using it were expecting null too)
Disabled noclip check. (general-devel is not general-test) Added null check to /region info (Don't commit shit that you know is broken)
This commit is contained in:
parent
05f0e9d717
commit
625bab753b
4 changed files with 26 additions and 18 deletions
|
|
@ -383,9 +383,9 @@ namespace TShockAPI
|
|||
player.TilesDestroyed.Clear();
|
||||
}
|
||||
}
|
||||
if (CheckPlayerCollision(player.TileX, player.TileY))
|
||||
player.SendMessage("You are currently nocliping!", Color.Red);
|
||||
if (player.LastDeath != null && player.ForceSpawn && (DateTime.Now - player.LastDeath).Seconds >= 3)
|
||||
/*if (CheckPlayerCollision(player.TileX, player.TileY))
|
||||
player.SendMessage("You are currently nocliping!", Color.Red);*/
|
||||
if (player.ForceSpawn && (DateTime.Now - player.LastDeath).Seconds >= 3)
|
||||
{
|
||||
player.Spawn();
|
||||
player.ForceSpawn = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue