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