fix text brick bit order
This commit is contained in:
parent
79dd1d7824
commit
eb08eafcfe
@ -17,7 +17,7 @@ local function getBit(gate, val)
|
||||
elseif gatedata.listenState=="terminate" then
|
||||
if val==1 then
|
||||
local v = gatedata.valReceived
|
||||
local iscolor = math.floor(v/512)==1 -- first bit
|
||||
local iscolor = math.floor(v/256)==1 -- first bit
|
||||
if iscolor then
|
||||
local printdomain = (math.floor(v/128)%2)==1 and "terminal" or "terminalInv" -- 8th lowest bit
|
||||
local colorid = v % 64 -- last 6 bits
|
||||
|
Loading…
x
Reference in New Issue
Block a user