fix half adder, fix rom not loading data on backend reconnect, fix robot planting overlaps

This commit is contained in:
Redo 2022-11-03 18:03:17 -06:00
parent 24daeae79b
commit 949aeaa2c8

View File

@ -19,7 +19,7 @@ datablock fxDTSBrickData(LogicGate_HalfAdder_Data)
logicUpdate =
"return function(gate) " @
" Gate.setportstate(gate, 3, bit.bxor(Gate.getportstate(gate, 1), Gate.getportstate(gate, 2))) " @
" Gate.setportstate(gate, 4, (Gate.getportstate(gate, 1) and Gate.getportstate(gate, 2)) and 1 or 0) " @
" Gate.setportstate(gate, 4, Gate.getportstate(gate, 1)*Gate.getportstate(gate, 2)) " @
"end"
;