From c817a0e9cb415d833ce2864cfa125fa3ed616c65 Mon Sep 17 00:00:00 2001 From: Myles Date: Tue, 15 Nov 2016 17:07:31 +0000 Subject: [PATCH] Add null check to hand patch --- .../us/myles/ViaVersion/bungee/listeners/MainHandPatch.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bungee/src/main/java/us/myles/ViaVersion/bungee/listeners/MainHandPatch.java b/bungee/src/main/java/us/myles/ViaVersion/bungee/listeners/MainHandPatch.java index 67af397ee..7d7a5e0ce 100644 --- a/bungee/src/main/java/us/myles/ViaVersion/bungee/listeners/MainHandPatch.java +++ b/bungee/src/main/java/us/myles/ViaVersion/bungee/listeners/MainHandPatch.java @@ -33,7 +33,8 @@ public class MainHandPatch implements Listener { return; UserConnection user = Via.getManager().getConnection(event.getPlayer().getUniqueId()); - + if(user == null) return; + try { if (user.get(ProtocolInfo.class).getPipeline().contains(Protocol1_9TO1_8.class)) { Object settings = getSettings.invoke(event.getPlayer());