Merge branch 'general-devel' of github.com:TShock/TShock into general-devel
Conflicts: TShockAPI/GetDataHandlers.cs
This commit is contained in:
commit
4100fdc8f6
3 changed files with 34 additions and 2 deletions
|
|
@ -202,6 +202,8 @@ namespace TShockAPI
|
|||
//Try 300 if it does not work (Higher number - Longer load times - Less chance of error)
|
||||
if (!SendTileSquare(tilex, tiley, 150))
|
||||
{
|
||||
InitSpawn = true;
|
||||
SendWorldInfo(Main.spawnTileX, Main.spawnTileY, false);
|
||||
SendMessage("Warning, teleport failed due to being too close to the edge of the map.", Color.Red);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue