mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-25 02:27:42 +01:00
Add Citizens NPCs to NPC detection for region whitelisting.
Fixes WORLDGUARD-3356.
This commit is contained in:
parent
a1a6ee7107
commit
4caff457d3
@ -150,7 +150,7 @@ public static boolean isAmbient(Entity entity) {
|
|||||||
* @return true if an NPC
|
* @return true if an NPC
|
||||||
*/
|
*/
|
||||||
public static boolean isNPC(Entity entity) {
|
public static boolean isNPC(Entity entity) {
|
||||||
return entity instanceof NPC;
|
return entity instanceof NPC || entity.hasMetadata("NPC");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user