From 30129d161f5c0a7651df753e61de6d34657c9a08 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 31 Dec 2024 18:56:20 -0600 Subject: [PATCH] force respawn of dead players throwing error --- src/engine/objects/PlayerCharacter.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 3be42777..e423ada1 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4830,8 +4830,11 @@ public class PlayerCharacter extends AbstractCharacter { if (sourcePlayer == null) return; + try { + sourcePlayer.getClientConnection().disconnect(); + } catch (Exception e) { - sourcePlayer.getClientConnection().disconnect(); + } }