make states numbers instead of booleans
This commit is contained in:
@@ -25,10 +25,10 @@ datablock fxDtsBrickData(LogicGate_Mux1Vertical_Data){
|
||||
"return function(gate) " @
|
||||
" if Gate.getportstate(gate, 4) then " @
|
||||
" local idx = 2 + " @
|
||||
" (bool_to_int[Gate.getportstate(gate, 1)] * 1) " @
|
||||
" (Gate.getportstate(gate, 1) * 1) " @
|
||||
" Gate.setportstate(gate, 5, Gate.getportstate(gate, idx)) " @
|
||||
" else " @
|
||||
" Gate.setportstate(gate, 5, false) " @
|
||||
" Gate.setportstate(gate, 5, 0) " @
|
||||
" end " @
|
||||
"end"
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user