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
if true_str(texture) then
texture = texture .. "\\^[resize\\:150x150"
texture = texture:gsub("%^", "\\^"):gsub(":", "\\:") .. "\\^[resize\\:150x150"
elseif is_cube(def.drawtype) then
texture = get_cube(def.tiles)
end

View File

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