Replace deprecated ItemStack:get_metadata() call
Some checks failed
luacheck / luacheck (push) Has been cancelled

This commit is contained in:
Niklp 2025-01-03 01:59:06 +01:00
parent 4cafa567a2
commit 599db75232
No known key found for this signature in database
GPG Key ID: 05D6F5035E66267A

View File

@ -290,7 +290,7 @@ function telemosaic.rightclick(pos, node, player, itemstack, pointed_thing)
elseif item == "telemosaic:key" then
-- Try to set a new destination
local dest_hash = itemstack:get_metadata()
local dest_hash = itemstack:get_meta():get_string("")
local src_hash = hash_pos(pos)
if dest_hash ~= src_hash and not minetest.is_protected(pos, player_name) then
local dest = unhash_pos(dest_hash)