diff --git a/src/caches.lua b/src/caches.lua index f4cdec7..2f65a68 100644 --- a/src/caches.lua +++ b/src/caches.lua @@ -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 diff --git a/src/common.lua b/src/common.lua index 322b99a..efb62b5 100644 --- a/src/common.lua +++ b/src/common.lua @@ -271,6 +271,8 @@ local function groups_to_items(groups) end end + sort(names) + return names end