mirror of
https://github.com/minetest/minetest_game.git
synced 2025-06-30 13:50:23 +02:00
Replace deprecated get_metadata()
calls (#3142)
This commit is contained in:
@ -803,7 +803,7 @@ function default.can_interact_with_node(player, pos)
|
||||
local key_meta = item:get_meta()
|
||||
|
||||
if key_meta:get_string("secret") == "" then
|
||||
local key_oldmeta = item:get_metadata()
|
||||
local key_oldmeta = item:get_meta():get_string("")
|
||||
if key_oldmeta == "" or not minetest.parse_json(key_oldmeta) then
|
||||
return false
|
||||
end
|
||||
|
Reference in New Issue
Block a user