fix player spawn stuff

This commit is contained in:
鱼鱼 2020-05-20 21:27:49 +08:00
parent 208afe9a7e
commit 946d54b69e
6 changed files with 53 additions and 38 deletions

View file

@ -2092,7 +2092,7 @@ namespace TShockAPI
if (respawnTimer > 0)
args.Player.Dead = true;
else
else
args.Player.Dead = false;
return false;
}
@ -2662,7 +2662,7 @@ namespace TShockAPI
if (type == 1 && TShock.Config.DisableDungeonGuardian)
{
args.Player.SendMessage("The Dungeon Guardian returned you to your spawn point", Color.Purple);
args.Player.Spawn();
args.Player.Spawn(PlayerSpawnContext.RecallFromItem);
return true;
}