mirror of
https://github.com/TotalFreedomMC/TF-LibsDisguises.git
synced 2024-11-11 01:17:16 +00:00
Do player null check for scheduler
This commit is contained in:
parent
2596813e45
commit
cb433458f4
2 changed files with 2 additions and 2 deletions
2
pom.xml
2
pom.xml
|
@ -5,7 +5,7 @@
|
|||
<!-- A good example on why temporary names for project identification shouldn't be used -->
|
||||
<groupId>LibsDisguises</groupId>
|
||||
<artifactId>LibsDisguises</artifactId>
|
||||
<version>10.0.10</version>
|
||||
<version>10.0.10-SNAPSHOT</version>
|
||||
|
||||
<build>
|
||||
<defaultGoal>exec:java clean install</defaultGoal>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue