mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-01-25 01:21:24 +01:00
Make local params actually local
This commit is contained in:
parent
f94a8e727b
commit
0067ed1f33
@ -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