Skip to content

Commit

Permalink
Fix contains not working (#2419)
Browse files Browse the repository at this point in the history
  • Loading branch information
bensku committed Sep 5, 2019
1 parent b0e8d6a commit 2b81b8f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ch/njol/skript/conditions/CondContains.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ public boolean check(final Event e) {
for (Object value : containers.getAll(e)) {
for (Object searched : items.getAll(e)) {
if (Relation.EQUAL.is(Comparators.compare(searched, value))) {
return true;
return !isNegated();
}
}
}
return false;
return isNegated();
}

return containers.check(e,
Expand Down

0 comments on commit 2b81b8f

Please sign in to comment.