forked from Mirrorlandia_minetest/digistuff
Fix bug that was forcing copies to be square
This commit is contained in:
parent
91b95b03cf
commit
e15ca1445c
2
gpu.lua
2
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 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 string.sub(transparent,1,1) == "#" then transparent = string.sub(transparent,2,7) end
|
||||||
if not tonumber(transparent,16) then transparent = "000000" 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
|
for x=0,xsize-1,1 do
|
||||||
local srcpx = sourcebuffer[srcy+y][srcx+x]
|
local srcpx = sourcebuffer[srcy+y][srcx+x]
|
||||||
local destpx = destbuffer[dsty+y][dstx+x]
|
local destpx = destbuffer[dsty+y][dstx+x]
|
||||||
|
Loading…
Reference in New Issue
Block a user