Null check anyway just in case

This commit is contained in:
fullwall 2020-07-10 23:16:09 +08:00
parent aaa45ea72e
commit 82c33ebfe3

View File

@ -32,6 +32,8 @@ public class PlayerlistTracker extends PlayerChunkMap.EntityTracker {
if (tracker.dead)
return;
final EntityPlayer entityplayer = lastUpdatedPlayer;
if (entityplayer == null)
return;
NMS.sendTabListAdd(entityplayer.getBukkitEntity(), (Player) tracker.getBukkitEntity());
if (!Setting.DISABLE_TABLIST.asBoolean())
return;