force respawn of dead players throwing error

This commit is contained in:
2024-12-31 18:55:17 -06:00
parent 9830920635
commit a6510af56d
+1 -2
View File
@@ -4844,8 +4844,7 @@ public class PlayerCharacter extends AbstractCharacter {
if (!this.isAlive() && this.isEnteredWorld()) {
if(!this.timestamps.containsKey("DeathTime")){
this.timestamps.put("DeathTime",System.currentTimeMillis());
}
if((System.currentTimeMillis() - this.timestamps.get("DeathTime")) > 600000)
}else if((System.currentTimeMillis() - this.timestamps.get("DeathTime")) > 600000)
forceRespawn(this);
return;
}