diff --git a/bricks/outputs/text2-update.lua b/bricks/outputs/text2-update.lua index 36673f4..e9b4bd8 100644 --- a/bricks/outputs/text2-update.lua +++ b/bricks/outputs/text2-update.lua @@ -19,7 +19,7 @@ local function getBit(gate, val) local v = gatedata.valReceived 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 printdomain = (math.floor(v/128)%2)==1 and "terminalInv" or "terminal" -- 8th lowest bit local colorid = v % 64 -- last 6 bits gatedata.printdomain = printdomain gatedata.colorid = colorid diff --git a/scripts/utilities.cs b/scripts/utilities.cs index 2d95fc0..f52bfdc 100644 --- a/scripts/utilities.cs +++ b/scripts/utilities.cs @@ -208,7 +208,7 @@ function lualogic_defineprint(%name, %file) { %count = getNumPrintTextures(); %print = $LuaLogic::PrintsByFile[%file]; if(%print $= "") { warn("LuaLogic_definePrint: No print named " @ %file @ " (" @ $LuaLogic::Print_Domain @ "." @ %name @ ")"); return; } - $LuaLogic::Print[$LuaLogic::Print_Domain, %name] = %file; + $LuaLogic::Print[$LuaLogic::Print_Domain, %name] = %print; } function lualogic_isprint(%print, %domain) {