mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
null check to prevent errors on <1.8
This commit is contained in:
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))));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user