From 578c6617308e92207278710535a492e6662f9e8c Mon Sep 17 00:00:00 2001 From: KennyTV Date: Wed, 22 Apr 2020 22:11:01 +0200 Subject: [PATCH] Check if player is handled by Via on disconnect --- common/src/main/java/us/myles/ViaVersion/ViaManager.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/us/myles/ViaVersion/ViaManager.java b/common/src/main/java/us/myles/ViaVersion/ViaManager.java index 2e116b867..d1e523a70 100644 --- a/common/src/main/java/us/myles/ViaVersion/ViaManager.java +++ b/common/src/main/java/us/myles/ViaVersion/ViaManager.java @@ -137,7 +137,10 @@ public class ViaManager { } public void handleDisconnect(UUID id) { - handleDisconnect(getConnection(id)); + UserConnection connection = getConnection(id); + if (connection != null) { + handleDisconnect(connection); + } } public void handleDisconnect(UserConnection info) {