1
0
mirror of https://github.com/Sokomine/locks.git synced 2025-07-01 06:20:21 +02:00

removed deprecated minetest.env calls

This commit is contained in:
Sokomine
2018-07-30 19:08:02 +02:00
parent 7846aa3894
commit 692608e1f4
5 changed files with 24 additions and 23 deletions

View File

@ -23,7 +23,7 @@ minetest.register_node("locks:shared_locked_sign_wall", {
on_construct = function(pos)
local meta = minetest.env:get_meta(pos)
local meta = minetest.get_meta(pos)
-- prepare the lock of the sign
locks:lock_init( pos,
"size[8,4]"..
@ -51,7 +51,7 @@ minetest.register_node("locks:shared_locked_sign_wall", {
and locks:lock_allow_use( pos, sender )) then
--print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))
local meta = minetest.env:get_meta(pos)
local meta = minetest.get_meta(pos)
fields.text = fields.text or "";
print((sender:get_player_name() or "").." wrote \""..fields.text..
"\" to sign at "..minetest.pos_to_string(pos));