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(); + } }