forked from nalc/homedecor_modpack
Quick patch to fix texture errors.
Reportedly, the color would be nil in some rare case.
This commit is contained in:
parent
763d8fa200
commit
5dd778cbdf
|
@ -341,6 +341,7 @@ end
|
||||||
local math_max = math.max
|
local math_max = math.max
|
||||||
|
|
||||||
local function fill_line(x, y, w, c)
|
local function fill_line(x, y, w, c)
|
||||||
|
c = c or "0"
|
||||||
local tex = { }
|
local tex = { }
|
||||||
for xx = 0, math.max(0, w-16), 16 do
|
for xx = 0, math.max(0, w-16), 16 do
|
||||||
table.insert(tex, (":%d,%d=slc_%s.png"):format(x + xx, y, c))
|
table.insert(tex, (":%d,%d=slc_%s.png"):format(x + xx, y, c))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user