fix: ignore respawnTimer when players are spawning into the world
* Players who die in single-player mode without respawning should not be marked as Dead on the SSC server. * In my tests, only the SSC server receives a non-zero `respawnTimer`. Therefore, this may be a client-side bug. closed: #3151
This commit is contained in:
parent
a867772116
commit
e6f3013a76
1 changed files with 5 additions and 2 deletions
|
|
@ -2734,8 +2734,11 @@ namespace TShockAPI
|
|||
|
||||
if (OnPlayerSpawn(args.Player, args.Data, player, spawnX, spawnY, respawnTimer, numberOfDeathsPVE, numberOfDeathsPVP, context))
|
||||
return true;
|
||||
|
||||
args.Player.Dead = respawnTimer > 0;
|
||||
|
||||
if (!Main.ServerSideCharacter || context != PlayerSpawnContext.SpawningIntoWorld)
|
||||
{
|
||||
args.Player.Dead = respawnTimer > 0;
|
||||
}
|
||||
|
||||
if (Main.ServerSideCharacter)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue