Send player back to spawn if remembered position puts them somewhere they can't really go.

This commit is contained in:
k0rd 2012-02-04 18:11:17 -05:00
parent e7889a7951
commit 364d4cb3f6

View file

@ -856,7 +856,7 @@ namespace TShockAPI
{
if (RememberedPos.GetLeavePos(player.Name, player.IP) != Vector2.Zero){
var pos = RememberedPos.GetLeavePos(player.Name, player.IP);
player.LastNetPosition = pos;
player.Teleport((int) pos.X, (int) pos.Y + 3);
}}