Make local params actually local

This commit is contained in:
fullwall 2012-09-03 16:04:34 +08:00
parent f94a8e727b
commit 0067ed1f33

View File

@ -112,6 +112,7 @@ public class CitizensNavigator implements Navigator {
cancelNavigation();
return;
}
localParams = defaultParams.clone();
PathStrategy newStrategy = new MCTargetStrategy(npc, target, aggressive, localParams);
switchStrategyTo(newStrategy);
}
@ -124,6 +125,7 @@ public class CitizensNavigator implements Navigator {
cancelNavigation();
return;
}
localParams = defaultParams.clone();
PathStrategy newStrategy = new MCNavigationStrategy(npc, target, localParams);
switchStrategyTo(newStrategy);
}