From 2c08c1f97b939700e8150cc174d9657e60e05f81 Mon Sep 17 00:00:00 2001 From: Mihin Dissanayake <73010893+MihinMUD@users.noreply.github.com> Date: Fri, 2 Jun 2023 07:29:14 +0530 Subject: [PATCH] Fix lockable items having the same craft as the normal version (#55) --- homedecor_common/inventory.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homedecor_common/inventory.lua b/homedecor_common/inventory.lua index 30d9172e..75cfb89d 100644 --- a/homedecor_common/inventory.lua +++ b/homedecor_common/inventory.lua @@ -210,7 +210,7 @@ function homedecor.handle_inventory(name, def, original_def) if lockable then local locked_def = table.copy(original_def) locked_def.description = S("@1 (Locked)", def.description or name) - + locked_def.crafts = nil local locked_inventory = locked_def.inventory locked_inventory.locked = true locked_inventory.lockable = nil -- avoid loops of locked locked stuff