From d90a9ad71c1de2b5b4621255a89461d4b8ab21b1 Mon Sep 17 00:00:00 2001 From: Speiger Date: Fri, 16 Dec 2022 18:10:07 +0100 Subject: [PATCH] Fixed that Expressions were inverted. --- build.gradle | 2 +- .../java/speiger/src/builder/conditions/NumberCondition.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index ca4f386..5bccaf5 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ repositories { } archivesBaseName = 'Simple Code Generator' -version = '1.2.1' +version = '1.2.2' apply plugin: 'maven' tasks.withType(JavaCompile) { diff --git a/src/main/java/speiger/src/builder/conditions/NumberCondition.java b/src/main/java/speiger/src/builder/conditions/NumberCondition.java index 3f8bdde..a0140ce 100644 --- a/src/main/java/speiger/src/builder/conditions/NumberCondition.java +++ b/src/main/java/speiger/src/builder/conditions/NumberCondition.java @@ -29,7 +29,7 @@ public class NumberCondition implements ICondition @Override public boolean isValid(CompiledArguments args) { - return op.matches(flipped ? args.get(flag) : number, flipped ? number : args.get(flag)); + return op.matches(flipped ? number : args.get(flag), flipped ? args.get(flag) : number); } public static NumberCondition tryBuild(String arg)