summaryrefslogtreecommitdiff
path: root/compat.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-30 23:55:07 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-30 23:55:07 -0400
commit17ee4f6aab3556945023178ae37237397fcaaa78 (patch)
treeca0a1ad1aa023d9a05cf4751b7f6d8b6d0c66ce8 /compat.lua
parent4a88ed096dea7044b7ebe55e70a947bdf048bcca (diff)
downloadpipeworks-17ee4f6aab3556945023178ae37237397fcaaa78.tar
pipeworks-17ee4f6aab3556945023178ae37237397fcaaa78.tar.gz
pipeworks-17ee4f6aab3556945023178ae37237397fcaaa78.tar.bz2
pipeworks-17ee4f6aab3556945023178ae37237397fcaaa78.tar.xz
pipeworks-17ee4f6aab3556945023178ae37237397fcaaa78.zip
Phased out all deprecated minetest.env:* uses in favor of minetest.*
Diffstat (limited to 'compat.lua')
-rw-r--r--compat.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/compat.lua b/compat.lua
index 55d207a..da3cac9 100644
--- a/compat.lua
+++ b/compat.lua
@@ -13,7 +13,7 @@ furnace=clone_node("default:furnace")
furnace.groups.tubedevice=1
furnace.groups.tubedevice_receiver=1
furnace.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)
@@ -22,7 +22,7 @@ furnace=clone_node("default:furnace")
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)
@@ -46,7 +46,7 @@ furnace=clone_node("default:furnace_active")
furnace.groups.tubedevice=1
furnace.groups.tubedevice_receiver=1
furnace.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)
@@ -55,7 +55,7 @@ furnace=clone_node("default:furnace_active")
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)
@@ -79,12 +79,12 @@ chest=clone_node("default:chest")
chest.groups.tubedevice=1
chest.groups.tubedevice_receiver=1
chest.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()
return inv:add_item("main",stack)
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()
return inv:room_for_item("main",stack)
end,