diff --git a/pom.xml b/pom.xml index 0118d9e0..b44bfa00 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ LibsDisguises LibsDisguises - 10.0.10 + 10.0.10-SNAPSHOT exec:java clean install diff --git a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerChannelRegister.java b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerChannelRegister.java index 79002e2f..8bc06a76 100644 --- a/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerChannelRegister.java +++ b/src/main/java/me/libraryaddict/disguise/utilities/packets/packetlisteners/PacketListenerChannelRegister.java @@ -39,7 +39,7 @@ public class PacketListenerChannelRegister extends PacketAdapter { public void run() { Player player = event.getPlayer(); - if (player.hasMetadata("ld_loggedin")) { + if (player == null || player.hasMetadata("ld_loggedin")) { return; }