mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-27 06:51:30 -08:00
Comment fix
This commit is contained in:
parent
a13c9d0761
commit
49fe47f1f8
1 changed files with 2 additions and 2 deletions
|
|
@ -781,7 +781,7 @@ public class LExecutor{
|
|||
Var vb = exec.var(b);
|
||||
|
||||
if(op.objFunction2 != null && va.isobj && vb.isobj){
|
||||
//use object function if provided, and one of the variables is an object
|
||||
//use object function if both are objects
|
||||
exec.setnum(dest, op.objFunction2.get(exec.obj(a), exec.obj(b)));
|
||||
}else{
|
||||
//otherwise use the numeric function
|
||||
|
|
@ -952,7 +952,7 @@ public class LExecutor{
|
|||
boolean cmp;
|
||||
|
||||
if(op.objFunction != null && va.isobj && vb.isobj){
|
||||
//use object function if provided, and one of the variables is an object
|
||||
//use object function if both are objects
|
||||
cmp = op.objFunction.get(exec.obj(value), exec.obj(compare));
|
||||
}else{
|
||||
cmp = op.function.get(exec.num(value), exec.num(compare));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue