Vanessa Ezekowitz
2014-11-30 a413904ecd574358f723123b3d3cc7447ecdf1fa
minetest.env:* --> minetest.*
5 files modified
22 ■■■■ changed files
technic/machines/LV/coal_alloy_furnace.lua 2 ●●● patch | view | raw | blame | history
technic/machines/MV/power_radiator.lua 2 ●●● patch | view | raw | blame | history
technic/machines/other/injector.lua 8 ●●●● patch | view | raw | blame | history
technic/machines/supply_converter.lua 2 ●●● patch | view | raw | blame | history
technic/tools/mining_drill.lua 8 ●●●● patch | view | raw | blame | history
technic/machines/LV/coal_alloy_furnace.lua
@@ -32,7 +32,7 @@
    legacy_facedir_simple = true,
    sounds = default.node_sound_stone_defaults(),
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        local meta = minetest.get_meta(pos)
        meta:set_string("formspec", formspec)
        meta:set_string("infotext", machine_name)
        local inv = meta:get_inventory()
technic/machines/MV/power_radiator.lua
@@ -149,7 +149,7 @@
    interval   = 1,
    chance     = 1,
    action = function(pos, node, active_object_count, active_object_count_wider)
        local meta             = minetest.env:get_meta(pos)
        local meta             = minetest.get_meta(pos)
        local eu_input  = meta:get_int("MV_EU_input")
        local eu_demand = meta:get_int("MV_EU_demand")
technic/machines/other/injector.lua
@@ -2,7 +2,7 @@
local S = technic.getter
local function inject_items (pos)
        local meta=minetest.env:get_meta(pos)
        local meta=minetest.get_meta(pos)
        local inv = meta:get_inventory()
        local mode=meta:get_string("mode")
        if mode=="single items" then
@@ -69,7 +69,7 @@
    tube = {connect_sides={bottom=1}},
    sounds = default.node_sound_wood_defaults(),
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        local meta = minetest.get_meta(pos)
        meta:set_string("infotext", S("Self-Contained Injector"))
        local inv = meta:get_inventory()
        inv:set_size("main", 8*4)
@@ -77,12 +77,12 @@
        set_injector_formspec(meta)
    end,
    can_dig = function(pos,player)
        local meta = minetest.env:get_meta(pos);
        local meta = minetest.get_meta(pos);
        local inv = meta:get_inventory()
        return inv:is_empty("main")
    end,
    on_receive_fields = function(pos, formanme, fields, sender)
        local meta = minetest.env:get_meta(pos)
        local meta = minetest.get_meta(pos)
        if fields.mode_item then meta:set_string("mode", "single items") end
        if fields.mode_stack then meta:set_string("mode", "whole stacks") end
        set_injector_formspec(meta)
technic/machines/supply_converter.lua
@@ -60,7 +60,7 @@
        fixed = {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5},
    },
    on_construct = function(pos)
        local meta = minetest.env:get_meta(pos)
        local meta = minetest.get_meta(pos)
        meta:set_string("infotext", S("Supply Converter"))
        meta:set_float("active", false)
    end,
technic/tools/mining_drill.lua
@@ -51,12 +51,12 @@
        minetest.record_protection_violation(pos, player:get_player_name())
        return
    end
    local node=minetest.env:get_node(pos)
    local node=minetest.get_node(pos)
    if node.name == "air" or node.name == "ignore" then return end
    if node.name == "default:lava_source" then return end
    if node.name == "default:lava_flowing" then return end
    if node.name == "default:water_source" then minetest.env:remove_node(pos) return end
    if node.name == "default:water_flowing" then minetest.env:remove_node(pos) return end
    if node.name == "default:water_source" then minetest.remove_node(pos) return end
    if node.name == "default:water_flowing" then minetest.remove_node(pos) return end
    minetest.node_dig(pos,node,player)
end
@@ -230,7 +230,7 @@
end
local function pos_is_pointable(pos)
    local node = minetest.env:get_node(pos)
    local node = minetest.get_node(pos)
    local nodedef = minetest.registered_nodes[node.name]
    return nodedef and nodedef.pointable
end