From 52f2a55cc1cc9a13316f123979f06891d825d052 Mon Sep 17 00:00:00 2001 From: hkc Date: Tue, 10 Sep 2024 19:30:02 +0300 Subject: [PATCH] Oops --- obcb-cc.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/obcb-cc.lua b/obcb-cc.lua index c1ed44e..f0e6167 100644 --- a/obcb-cc.lua +++ b/obcb-cc.lua @@ -87,8 +87,8 @@ function() for x = 1, 164 do local i = (y - 1) * 164 + (x - 1) tx[x] = chunk_state[i * 2 + 1] - bg[x] = string.format("%x", bit.band(chunk_state[i * 2 + 2], 0xF)) - fg[x] = string.format("%x", bit.band(bit.brshift(chunk_state[i * 2 + 2], 4), 0xF)) + fg[x] = string.format("%x", bit.band(chunk_state[i * 2 + 2], 0xF)) + bg[x] = string.format("%x", bit.band(bit.brshift(chunk_state[i * 2 + 2], 4), 0xF)) end mon.blit(string.char(table.unpack(tx)), table.concat(bg), table.concat(fg)) end