Don't stop the loop, what if the entity has multiple goals of same type?
This commit is contained in:
parent
4ec8dbae2a
commit
10e2c64a92
@ -125,7 +125,6 @@ public class EffRemovePathGoal extends Effect {
|
||||
if (ReflectionUtils.getField("a", o.getClass(), o).getClass() == toRemove) {
|
||||
goals.remove();
|
||||
goalPriorities.remove();
|
||||
break;
|
||||
}
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
|
Loading…
Reference in New Issue
Block a user