Make local params actually local

This commit is contained in:
fullwall 2012-09-03 16:04:34 +08:00
parent fcf8bf1f88
commit fae265b22b

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);
}