bugfix: conditions not respecting inversion

This commit is contained in:
Stephan Richter
2020-11-01 19:09:05 +01:00
parent c790e8e8db
commit 6ed1255076
7 changed files with 9 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ public class ConditionalAction extends Action {
@Override
public boolean fire(Context context) throws IOException {
for (Condition condition : conditions) {
if (condition.fulfilledBy(context) != condition.inverted) return actions.fire(context);
if (condition.fulfilledBy(context)) return actions.fire(context);
}
return false;
}