update logic functions to remove metatable OOP
This commit is contained in:
@@ -24,9 +24,9 @@ datablock fxDtsBrickData(LogicGate_GateXor2_Data){
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" local v = false " @
|
||||
" if gate.ports[1].state then v = not v end " @
|
||||
" if gate.ports[2].state then v = not v end " @
|
||||
" gate.ports[3]:setstate(v) " @
|
||||
" if Gate.getportstate(gate, 1) then v = not v end " @
|
||||
" if Gate.getportstate(gate, 2) then v = not v end " @
|
||||
" Gate.setportstate(gate, 3, v) " @
|
||||
"end"
|
||||
;
|
||||
logicGlobal = "";
|
||||
|
||||
Reference in New Issue
Block a user