Keys: Update default.can_interact_with_node to new item meta
Completes a forgotten update in 9d3a526
This commit is contained in:
parent
07a5fca432
commit
b87ef5ccde
3 changed files with 17 additions and 13 deletions
|
@ -149,6 +149,7 @@ function _doors.door_toggle(pos, node, clicker)
|
|||
|
||||
if key_meta:get_string("secret") == "" then
|
||||
key_meta:set_string("secret", minetest.parse_json(item:get_metadata()).secret)
|
||||
item:set_metadata("")
|
||||
end
|
||||
|
||||
if secret ~= key_meta:get_string("secret") then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue