Additional handling for beds (yes, magic mirror is still required)
This commit is contained in:
parent
a3a85957f6
commit
4f106c7dff
2 changed files with 18 additions and 2 deletions
|
|
@ -686,7 +686,13 @@ namespace TShockAPI
|
|||
if (player.RecentFuse >0)
|
||||
player.RecentFuse--;
|
||||
|
||||
if ((TShock.Config.ServerSideCharacter) && (player.sX > 0) && (player.sY > 0))
|
||||
if ((TShock.Config.ServerSideCharacter) && (player.TPlayer.SpawnX > 0) &&(player.sX != player.TPlayer.SpawnX))
|
||||
{
|
||||
player.sX=player.TPlayer.SpawnX;
|
||||
player.sY=player.TPlayer.SpawnY;
|
||||
}
|
||||
|
||||
if ((TShock.Config.ServerSideCharacter) && (player.sX > 0) && (player.sY > 0) && (player.TPlayer.SpawnX < 0))
|
||||
{
|
||||
player.TPlayer.SpawnX = player.sX;
|
||||
player.TPlayer.SpawnY = player.sY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue