mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-22 08:00:18 +01:00
Fix lockable items having the same craft as the normal version (#55)
This commit is contained in:
parent
6bbaa7491d
commit
2c08c1f97b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user