Skip to content
Permalink
Browse files

properly pause waypoints when chasing

  • Loading branch information...
mcmonkey4eva committed Nov 2, 2018
1 parent a1dbc53 commit 63d26a8e7918b8b1ca29302e6a2a07987ed6be7b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/mcmonkey/sentinel/SentinelTrait.java
@@ -960,7 +960,7 @@ public void runUpdate() {
getLivingEntity().setHealth(Math.min(getLivingEntity().getHealth() + 1.0, health));
timeSinceHeal = 0;
}
if (getGuarding() != null && npc.hasTrait(Waypoints.class)) {
if ((getGuarding() != null || chasing != null) && npc.hasTrait(Waypoints.class)) {
Waypoints wp = npc.getTrait(Waypoints.class);
if (!wp.getCurrentProvider().isPaused()) {
wp.getCurrentProvider().setPaused(true);

0 comments on commit 63d26a8

Please sign in to comment.
You can’t perform that action at this time.