null check to prevent errors on <1.8

This commit is contained in:
NEZNAMY committed 2020-08-26 10:43:54 +02:00
1 parent 1cbbd08807
commit 7cdac2d4d8
1 file changed
+1
@@ -58,6 +58,7 @@ public class NMSHook {
}
public static Object getChannel(Player p) throws Exception {
if (CHANNEL == null) return null;
return CHANNEL.get(NETWORK_MANAGER.get(PLAYER_CONNECTION.get(getHandle.invoke(p))));
}