From 56cb236025f0de975d0fd6a13c87524a41a6b717 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 19 Jun 2022 03:30:48 +0200 Subject: [PATCH] Fix again --- src/caches.lua | 2 +- src/common.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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