mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 12:15:53 +01:00
Merge branch 'master' of github.com:CitizensDev/Citizens2
This commit is contained in:
commit
ec2eae62b7
@ -225,12 +225,12 @@ public class CitizensNavigator implements Navigator, Runnable {
|
||||
stopNavigating();
|
||||
return;
|
||||
}
|
||||
if (reason == CancelReason.STUCK && localParams.stuckAction() != null) {
|
||||
if (reason == CancelReason.STUCK) {
|
||||
StuckAction action = localParams.stuckAction();
|
||||
NavigationStuckEvent event = new NavigationStuckEvent(this, action);
|
||||
Bukkit.getPluginManager().callEvent(event);
|
||||
action = event.getAction();
|
||||
boolean shouldContinue = action.run(npc, this);
|
||||
boolean shouldContinue = action != null ? action.run(npc, this): false;
|
||||
if (shouldContinue) {
|
||||
stationaryTicks = 0;
|
||||
executing.clearCancelReason();
|
||||
|
Loading…
Reference in New Issue
Block a user