Correct condition
This commit is contained in:
parent
dcc4068e46
commit
c91f787cb2
|
@ -39,12 +39,10 @@ local function cache_groups(group, groups)
|
|||
|
||||
for _, item in ipairs(items) do
|
||||
local def = reg_items[item]
|
||||
|
||||
if def then
|
||||
local tiles = def.tiles or def.tile_images
|
||||
local texture = true_str(def.inventory_image) and def.inventory_image --or tiles[1]
|
||||
|
||||
if is_cube(def.drawtype) then
|
||||
if def.drawtype and is_cube(def.drawtype) then
|
||||
texture = get_cube(tiles)
|
||||
elseif texture then
|
||||
texture = texture:gsub("%^", "\\^"):gsub(":", "\\:") .. "\\^[resize\\:150x150"
|
||||
|
@ -56,7 +54,6 @@ local function cache_groups(group, groups)
|
|||
if c == lim then break end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if c > 1 then
|
||||
sprite = sprite:gsub("WxH", px .. "x" .. px * c)
|
||||
|
|
Ŝarĝante…
Reference in New Issue