mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-29 13:20:25 +02:00
Keys: Update default.can_interact_with_node to new item meta
Completes a forgotten update in 9d3a526
This commit is contained in:
@ -1805,6 +1805,7 @@ minetest.register_node("default:chest_locked", {
|
||||
|
||||
if key_meta:get_string("secret") == "" then
|
||||
key_meta:set_string("secret", minetest.parse_json(itemstack:get_metadata()).secret)
|
||||
itemstack:set_metadata("")
|
||||
end
|
||||
|
||||
if secret ~= key_meta:get_string("secret") then
|
||||
|
Reference in New Issue
Block a user