From a6510af56dbef6d95b2e69c8fa0824df73cf8f68 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 31 Dec 2024 18:55:17 -0600 Subject: [PATCH] force respawn of dead players throwing error --- src/engine/objects/PlayerCharacter.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index d20cf5de..3be42777 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -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; }