From cc774b00367854dbcbb145d9e34f9fee603aeb58 Mon Sep 17 00:00:00 2001 From: Efnilite <35348263+Efnilite@users.noreply.github.com> Date: Wed, 1 Jan 2025 18:38:53 +0100 Subject: [PATCH] revert #test checking negation --- .../ch/njol/skript/conditions/base/PropertyCondition.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/main/java/ch/njol/skript/conditions/base/PropertyCondition.java b/src/main/java/ch/njol/skript/conditions/base/PropertyCondition.java index 8f56a1f66b6..49b430c6768 100644 --- a/src/main/java/ch/njol/skript/conditions/base/PropertyCondition.java +++ b/src/main/java/ch/njol/skript/conditions/base/PropertyCondition.java @@ -195,11 +195,7 @@ public final boolean check(Event event) { @Override public final boolean test(T value) { - if (isNegated()) { - return !this.check(value); - } else { - return this.check(value); - } + return check(value); } protected abstract String getPropertyName();