make states numbers instead of booleans
This commit is contained in:
@@ -23,10 +23,10 @@ datablock fxDtsBrickData(LogicGate_Enabler1BitDown_Data){
|
||||
logicInput = "";
|
||||
logicUpdate =
|
||||
"return function(gate) " @
|
||||
" if Gate.getportstate(gate, 3) then " @
|
||||
" if Gate.getportstate(gate, 3)~=0 then " @
|
||||
" Gate.setportstate(gate, 2, Gate.getportstate(gate, 1)) " @
|
||||
" else " @
|
||||
" Gate.setportstate(gate, 2, false) " @
|
||||
" Gate.setportstate(gate, 2, 0) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user