mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-24 11:38:26 +01:00
Make local params actually local
This commit is contained in:
parent
fcf8bf1f88
commit
fae265b22b
@ -112,6 +112,7 @@ public class CitizensNavigator implements Navigator {
|
|||||||
cancelNavigation();
|
cancelNavigation();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
localParams = defaultParams.clone();
|
||||||
PathStrategy newStrategy = new MCTargetStrategy(npc, target, aggressive, localParams);
|
PathStrategy newStrategy = new MCTargetStrategy(npc, target, aggressive, localParams);
|
||||||
switchStrategyTo(newStrategy);
|
switchStrategyTo(newStrategy);
|
||||||
}
|
}
|
||||||
@ -124,6 +125,7 @@ public class CitizensNavigator implements Navigator {
|
|||||||
cancelNavigation();
|
cancelNavigation();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
localParams = defaultParams.clone();
|
||||||
PathStrategy newStrategy = new MCNavigationStrategy(npc, target, localParams);
|
PathStrategy newStrategy = new MCNavigationStrategy(npc, target, localParams);
|
||||||
switchStrategyTo(newStrategy);
|
switchStrategyTo(newStrategy);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user