1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-11-17 15:48:31 +01:00

Fix lockable items having the same craft as the normal version (#55)

This commit is contained in:
Mihin Dissanayake 2023-06-02 07:29:14 +05:30 committed by GitHub
parent 6bbaa7491d
commit 2c08c1f97b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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