From cb433458f437f72b262265f48b4ff17ed9b76e37 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 22 May 2020 22:49:22 +1200 Subject: [PATCH] Do player null check for scheduler --- pom.xml | 2 +- .../packets/packetlisteners/PacketListenerChannelRegister.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }