Skip to content

Commit

Permalink
allow player NPCs in mobprox
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Sep 2, 2017
1 parent 614b0b0 commit 3d61cec
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -52,7 +52,8 @@ public void run() {
List<Entity> removeme = new ArrayList<Entity>();
removeme.addAll(inrange);
for (Entity ent : nearby) {
if (ent instanceof LivingEntity && !(ent instanceof Player) && (acceptnpc || (!dEntity.isCitizensNPC(ent)))) {
if (ent instanceof LivingEntity && (!(ent instanceof Player) || dEntity.isCitizensNPC(ent))
&& (acceptnpc || (!dEntity.isCitizensNPC(ent)))) {
if (removeme.contains(ent)) {
removeme.remove(ent);
}
Expand Down

0 comments on commit 3d61cec

Please sign in to comment.