fix attempt #4
This commit is contained in:
@@ -390,8 +390,8 @@ local function render(buf, pbuf, cx,cy,cz, tx,tz, sx,sz, shouldsetlist,invertsli
|
||||
reset()
|
||||
for x=1,sx,1 do
|
||||
for z=1,sz,1 do
|
||||
local currentbuf = pbuf[posasstring(x+camx, cy, z+camy)]
|
||||
term.setCursorPos(x+camx, z+camy)
|
||||
local currentbuf = pbuf[posasstring(x-camx, cy, z-camy)]
|
||||
term.setCursorPos(x-camx, z-camy)
|
||||
if currentbuf then -- wall
|
||||
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
|
||||
@@ -399,9 +399,9 @@ local function render(buf, pbuf, cx,cy,cz, tx,tz, sx,sz, shouldsetlist,invertsli
|
||||
end
|
||||
end
|
||||
end
|
||||
term.setCursorPos(cx+camx,cz+camy)
|
||||
term.setCursorPos(cx-camx,cz-camy)
|
||||
term.blit(" ", colors.toBlit(colors.red), colors.toBlit(colors.red))
|
||||
term.setCursorPos(tx+camx,tz+camy)
|
||||
term.setCursorPos(tx-camx,tz-camy)
|
||||
term.blit(" ", colors.toBlit(colors.lime), colors.toBlit(colors.lime))
|
||||
end
|
||||
local function printdes(buf, dimensions)
|
||||
|
||||
Reference in New Issue
Block a user