Add Citizens NPCs to NPC detection for region whitelisting.

Fixes WORLDGUARD-3356.
This commit is contained in:
wizjany 2015-02-04 17:03:01 -05:00
parent a1a6ee7107
commit 4caff457d3

View File

@ -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");
} }
/** /**