From 088269a85ec592b988d4d723f41c266964e1284b Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 19 Aug 2015 20:28:47 +0200 Subject: [PATCH] streamline locked description/infotext setting; avoid double brackets "Node (Locked) (owned by .. )" --- homedecor/handlers/inventory.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homedecor/handlers/inventory.lua b/homedecor/handlers/inventory.lua index 362f1e5..8a2bc9c 100644 --- a/homedecor/handlers/inventory.lua +++ b/homedecor/handlers/inventory.lua @@ -154,7 +154,7 @@ function homedecor.handle_inventory(name, def, original_def) local lockable = inventory.lockable if lockable then local locked_def = table.copy(original_def) - locked_def.description = S("%s (Locked)"):format(def.infotext or def.description) + locked_def.description = S("Locked %s"):format(def.description or name) local locked_inventory = locked_def.inventory locked_inventory.locked = true