fix invalid rendering
This commit is contained in:
@@ -390,8 +390,8 @@ local function render(buf, pbuf, cx,cy,cz, tx,tz, sx,sz, shouldsetlist,invertsli
|
|||||||
reset()
|
reset()
|
||||||
for x=1+camx,sx+camx,1 do
|
for x=1+camx,sx+camx,1 do
|
||||||
for z=1+camy,sz+camy,1 do
|
for z=1+camy,sz+camy,1 do
|
||||||
local currentbuf = pbuf[posasstring(x-camx, cy, z-camy)]
|
local currentbuf = pbuf[posasstring(x, cy, z)]
|
||||||
term.setCursorPos(x, z)
|
term.setCursorPos(x-camx, z-camy)
|
||||||
if currentbuf then -- wall
|
if currentbuf then -- wall
|
||||||
term.blit(" ", colors.toBlit(colors.white), colors.toBlit(colors.white))
|
term.blit(" ", colors.toBlit(colors.white), colors.toBlit(colors.white))
|
||||||
elseif (currentbuf == false or currentbuf == nil) and (invertslist and not tcontains(shouldsetlist, buf[posasstring(x, cy, z)]) or tcontains(shouldsetlist, buf[posasstring(x, cy, z)])) then -- nothing
|
elseif (currentbuf == false or currentbuf == nil) and (invertslist and not tcontains(shouldsetlist, buf[posasstring(x, cy, z)]) or tcontains(shouldsetlist, buf[posasstring(x, cy, z)])) then -- nothing
|
||||||
|
|||||||
Reference in New Issue
Block a user