forked from nalc/homedecor_modpack
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