Fixed that Expressions were inverted.
This commit is contained in:
parent
b0792532b1
commit
d90a9ad71c
|
@ -5,7 +5,7 @@ repositories {
|
|||
}
|
||||
|
||||
archivesBaseName = 'Simple Code Generator'
|
||||
version = '1.2.1'
|
||||
version = '1.2.2'
|
||||
apply plugin: 'maven'
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue