Update HumanController.java

This commit is contained in:
fullwall 2015-06-04 12:00:16 +08:00
parent 00361a6438
commit 6e8951c733

View File

@ -110,7 +110,7 @@ public class HumanController extends AbstractEntityController {
Bukkit.getScheduler().scheduleSyncDelayedTask(CitizensAPI.getPlugin(), new Runnable() {
@Override
public void run() {
if (!getBukkitEntity().isValid())
if (getBukkitEntity() == null || !getBukkitEntity().isValid())
return;
boolean removeFromPlayerList = Setting.REMOVE_PLAYERS_FROM_PLAYER_LIST.asBoolean();
NMS.addOrRemoveFromPlayerList(getBukkitEntity(),