mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-08-08 21:52:53 +02:00
Update HumanController.java
This commit is contained in:
parent
00361a6438
commit
6e8951c733
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user