summaryrefslogtreecommitdiff
path: root/tubes.lua
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-15 16:05:35 -0500
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-12-15 16:05:35 -0500
commit41ce9be8f35539c0144bfc6272782039b7bc9048 (patch)
treede7400ce92d24436e00be26335d6e0e36214f4cf /tubes.lua
parenta4a74413c0037b4729e4c728f2b32e91395b7e60 (diff)
downloadpipeworks-41ce9be8f35539c0144bfc6272782039b7bc9048.tar
pipeworks-41ce9be8f35539c0144bfc6272782039b7bc9048.tar.gz
pipeworks-41ce9be8f35539c0144bfc6272782039b7bc9048.tar.bz2
pipeworks-41ce9be8f35539c0144bfc6272782039b7bc9048.tar.xz
pipeworks-41ce9be8f35539c0144bfc6272782039b7bc9048.zip
notvel function can't be local - made global and confined to pipeworks.{}
Diffstat (limited to 'tubes.lua')
-rw-r--r--tubes.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/tubes.lua b/tubes.lua
index e37946b..9f2bf14 100644
--- a/tubes.lua
+++ b/tubes.lua
@@ -341,7 +341,7 @@ if pipeworks.enable_detector_tube then
local nitems=meta:get_int("nitems")+1
meta:set_int("nitems", nitems)
minetest.after(0.1,minetest.registered_nodes[name].item_exit,pos)
- return notvel(pipeworks.meseadjlist,velocity)
+ return pipeworks.notvel(pipeworks.meseadjlist,velocity)
end},
groups={mesecon=2,not_in_creative_inventory=1},
drop="pipeworks:detector_tube_off_000000",
@@ -371,7 +371,7 @@ if pipeworks.enable_detector_tube then
local name = minetest.get_node(pos).name
minetest.set_node(pos,{name=string.gsub(name,"off","on")})
mesecon:receptor_on(pos,mesecons_rules)
- return notvel(pipeworks.meseadjlist,velocity)
+ return pipeworks.notvel(pipeworks.meseadjlist,velocity)
end},
groups={mesecon=2},
mesecons={receptor={state="off",
@@ -428,7 +428,7 @@ if pipeworks.enable_accelerator_tube then
accelerator_noctr_textures,accelerator_end_textures,accelerator_short_texture,accelerator_inv_texture,
{tube={can_go=function(pos,node,velocity,stack)
velocity.speed=velocity.speed+1
- return notvel(pipeworks.meseadjlist,velocity)
+ return pipeworks.notvel(pipeworks.meseadjlist,velocity)
end}
})
end