Fix again

This commit is contained in:
Jean-Patrick Guerrero 2022-06-19 03:30:48 +02:00
parent 8525633d4c
commit 56cb236025
2 changed files with 3 additions and 1 deletions

View File

@ -40,7 +40,7 @@ local function cache_groups(group, groups)
local texture = def.inventory_image or def.wield_image local texture = def.inventory_image or def.wield_image
if true_str(texture) then if true_str(texture) then
texture = texture .. "\\^[resize\\:150x150" texture = texture:gsub("%^", "\\^"):gsub(":", "\\:") .. "\\^[resize\\:150x150"
elseif is_cube(def.drawtype) then elseif is_cube(def.drawtype) then
texture = get_cube(def.tiles) texture = get_cube(def.tiles)
end end

View File

@ -271,6 +271,8 @@ local function groups_to_items(groups)
end end
end end
sort(names)
return names return names
end end