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

@ -60,7 +60,7 @@ if( locks.pipeworks_enabled ) then
tubedevice = 1, tubedevice_receiver = 1 };
locks.furnace_add.tube = {
insert_object = function(pos, node, stack, direction)
local meta = minetest.env:get_meta(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
if direction.y == 1 then
return inv:add_item("fuel",stack)
@ -69,7 +69,7 @@ if( locks.pipeworks_enabled ) then
end
end,
can_insert = function(pos, node, stack, direction)
local meta = minetest.env:get_meta(pos)
local meta = minetest.get_meta(pos)
local inv = meta:get_inventory()
if direction.y == 1 then
return inv:room_for_item("fuel", stack)