mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-13 19:39:04 +07:00
Fixed #4277
This commit is contained in:
parent
9f51e23206
commit
99aec4ad15
@ -952,7 +952,7 @@ public class LExecutor{
|
||||
Var vb = exec.var(compare);
|
||||
boolean cmp;
|
||||
|
||||
if(op.objFunction != null && (va.isobj || vb.isobj)){
|
||||
if(op.objFunction != null && va.isobj && vb.isobj){
|
||||
//use object function if provided, and one of the variables is an object
|
||||
cmp = op.objFunction.get(exec.obj(value), exec.obj(compare));
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user