Redigit why is teleporting so hard.
This commit is contained in:
parent
4d2639bb2a
commit
6aba5ca624
1 changed files with 2 additions and 5 deletions
|
|
@ -778,16 +778,13 @@ namespace TShockAPI
|
||||||
}
|
}
|
||||||
int lastTileX = (int) (args.Player.LastNetPosition.X/16f);
|
int lastTileX = (int) (args.Player.LastNetPosition.X/16f);
|
||||||
int lastTileY = (int) (args.Player.LastNetPosition.Y/16f);
|
int lastTileY = (int) (args.Player.LastNetPosition.Y/16f);
|
||||||
if (!args.Player.Teleport(lastTileX, lastTileY + 3))
|
if (!args.Player.Teleport(lastTileX, lastTileY))
|
||||||
{
|
{
|
||||||
args.Player.Spawn();
|
args.Player.Spawn();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
return true;
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (args.Player.Dead)
|
if (args.Player.Dead)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue