Fixed that Expressions were inverted.

This commit is contained in:
Speiger 2022-12-16 18:10:07 +01:00
parent b0792532b1
commit d90a9ad71c
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ repositories {
}
archivesBaseName = 'Simple Code Generator'
version = '1.2.1'
version = '1.2.2'
apply plugin: 'maven'
tasks.withType(JavaCompile) {

View File

@ -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)