update logic functions to remove metatable OOP
This commit is contained in:
@@ -23,12 +23,12 @@ datablock fxDtsBrickData(LogicGate_Buffer2_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if gate.ports[5].state then " @
|
||||
" gate.ports[3]:setstate(gate.ports[1].state) " @
|
||||
" gate.ports[4]:setstate(gate.ports[2].state) " @
|
||||
" if Gate.getportstate(gate, 5) then " @
|
||||
" Gate.setportstate(gate, 3, Gate.getportstate(gate, 1)) " @
|
||||
" Gate.setportstate(gate, 4, Gate.getportstate(gate, 2)) " @
|
||||
" else " @
|
||||
" gate.ports[3]:setstate(false) " @
|
||||
" gate.ports[4]:setstate(false) " @
|
||||
" Gate.setportstate(gate, 3, false) " @
|
||||
" Gate.setportstate(gate, 4, false) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user