Don't stop the loop, what if the entity has multiple goals of same type?

This commit is contained in:
Richard 2016-02-07 10:40:29 -02:00
parent 4ec8dbae2a
commit 10e2c64a92

View File

@ -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) {