Fix possible null references. Remove noclip check, I bypassed it in 5 seconds in zidomod... So useless
This commit is contained in:
parent
7c09a174e8
commit
d343983f2c
2 changed files with 21 additions and 12 deletions
|
|
@ -582,13 +582,6 @@ namespace TShockAPI
|
|||
args.Player.Spawn();
|
||||
return true;
|
||||
}
|
||||
if (TShock.CheckPlayerCollision((int)(pos.X / 16f), (int)(pos.Y / 16f))) //NoClipping or possible errors
|
||||
{
|
||||
args.Player.SendMessage("You got stuck in a solid object! Sent you to the spawn point.", Color.Red);
|
||||
args.Player.SendTileSquare((int)(pos.X / 16f), (int)(pos.X / 16f));
|
||||
args.Player.Spawn();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
args.Player.LastNetPosition = pos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue