mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-02-04 22:41:25 +01:00
Null check for completeness sake
This commit is contained in:
parent
fe15df7c8b
commit
fdba356b6c
@ -551,7 +551,7 @@ public class EntityHumanNPC extends ServerPlayer implements NPCHolder, Skinnable
|
||||
|
||||
@Override
|
||||
public boolean canSee(org.bukkit.entity.Entity entity) {
|
||||
if (entity.getType() == EntityType.ITEM_FRAME) {
|
||||
if (entity != null && entity.getType() == EntityType.ITEM_FRAME) {
|
||||
return false; // optimise for large maps in item frames
|
||||
}
|
||||
return super.canSee(entity);
|
||||
|
Loading…
Reference in New Issue
Block a user