Skip to content

Commit

Permalink
Citizens is a bork sometimes, for #138
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Feb 27, 2017
1 parent 7e94e3a commit 80955f8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/mcmonkey/sentinel/SentinelTrait.java
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -1500,6 +1500,7 @@ public LivingEntity findBestTarget() {
Location pos = getGuardZone(); Location pos = getGuardZone();
if (!getGuardZone().getWorld().equals(getLivingEntity().getWorld())) { if (!getGuardZone().getWorld().equals(getLivingEntity().getWorld())) {
// Emergency corrective measures... // Emergency corrective measures...
npc.getNavigator().cancelNavigation();
getLivingEntity().teleport(getGuardZone()); getLivingEntity().teleport(getGuardZone());
return null; return null;
} }
Expand Down

0 comments on commit 80955f8

Please sign in to comment.