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)