From 10e2c64a92419ecf9b5808670fb6da5e6abb3078 Mon Sep 17 00:00:00 2001 From: Richard Date: Sun, 7 Feb 2016 10:40:29 -0200 Subject: [PATCH] Don't stop the loop, what if the entity has multiple goals of same type? --- src/me/TheBukor/SkStuff/effects/EffRemovePathGoal.java | 1 - 1 file changed, 1 deletion(-) diff --git a/src/me/TheBukor/SkStuff/effects/EffRemovePathGoal.java b/src/me/TheBukor/SkStuff/effects/EffRemovePathGoal.java index bea9679..3611cd1 100644 --- a/src/me/TheBukor/SkStuff/effects/EffRemovePathGoal.java +++ b/src/me/TheBukor/SkStuff/effects/EffRemovePathGoal.java @@ -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) {