diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-06-30 23:55:07 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-06-30 23:55:07 -0400 |
commit | 17ee4f6aab3556945023178ae37237397fcaaa78 (patch) | |
tree | ca0a1ad1aa023d9a05cf4751b7f6d8b6d0c66ce8 /compat.lua | |
parent | 4a88ed096dea7044b7ebe55e70a947bdf048bcca (diff) |
Phased out all deprecated minetest.env:* uses in favor of minetest.*
Diffstat (limited to 'compat.lua')
-rw-r--r-- | compat.lua | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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, |