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