From e15ca1445c36a55b9031b8f88f2ab07d7c15df84 Mon Sep 17 00:00:00 2001 From: cheapie Date: Tue, 26 Jan 2021 18:13:00 -0600 Subject: [PATCH] Fix bug that was forcing copies to be square --- gpu.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpu.lua b/gpu.lua index cf75a05..cb8bc1f 100644 --- a/gpu.lua +++ b/gpu.lua @@ -286,7 +286,7 @@ local function runcommand(pos,meta,command) if type(transparent) ~= "string" or string.len(transparent) > 7 or string.len(transparent) < 6 then transparent = "000000" end if string.sub(transparent,1,1) == "#" then transparent = string.sub(transparent,2,7) end if not tonumber(transparent,16) then transparent = "000000" end - for y=0,xsize-1,1 do + for y=0,ysize-1,1 do for x=0,xsize-1,1 do local srcpx = sourcebuffer[srcy+y][srcx+x] local destpx = destbuffer[dsty+y][dstx+x]