diff options
author | ForbiddenJ <justinscomputercreations@gmail.com> | 2017-04-04 02:25:27 -0500 |
---|---|---|
committer | Diego MartÃnez <kaeza@users.noreply.github.com> | 2017-04-04 05:27:37 -0300 |
commit | 00561161480e51632a0c546cf34fc62282c9fe06 (patch) | |
tree | 82b8343dbfe56cf436f0d884571696a3f4a7614a /item_transport.lua | |
parent | 0639bb970666cfc9ec56f848c6334263fccaaa9f (diff) |
Namespace pollution cleanup (Used list at #154)
Diffstat (limited to 'item_transport.lua')
-rw-r--r-- | item_transport.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/item_transport.lua b/item_transport.lua index e906387..4f8d5d6 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -1,3 +1,5 @@ +local luaentity = pipeworks.luaentity + function pipeworks.tube_item(pos, item) error("obsolete pipeworks.tube_item() called; change caller to use pipeworks.tube_inject_item() instead") end @@ -55,7 +57,7 @@ local function go_next(pos, velocity, stack) end for _, vect in ipairs(can_go) do local npos = vector.add(pos, vect) - minetest.load_position(npos) + pipeworks.load_position(npos) local node = minetest.get_node(npos) local reg_node = minetest.registered_nodes[node.name] if reg_node then @@ -225,7 +227,7 @@ luaentity.register_entity("pipeworks:tubed_item", { moved = true end - minetest.load_position(self.start_pos) + pipeworks.load_position(self.start_pos) local node = minetest.get_node(self.start_pos) if moved and minetest.get_item_group(node.name, "tubedevice_receiver") == 1 then local leftover |