summaryrefslogtreecommitdiff
path: root/tubes.lua
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-06-14 16:54:31 +0200
committerNovatux <nathanael.courant@laposte.net>2014-06-14 16:54:31 +0200
commita31a9d573f6402bd80cb402cce6eeac0c48b7c4a (patch)
tree392b78cfc5c877788ca701281505a99c2a7875d2 /tubes.lua
parent9a63a1614088f57ae692b4adafb206b8e4544c71 (diff)
downloadpipeworks-a31a9d573f6402bd80cb402cce6eeac0c48b7c4a.tar
pipeworks-a31a9d573f6402bd80cb402cce6eeac0c48b7c4a.tar.gz
pipeworks-a31a9d573f6402bd80cb402cce6eeac0c48b7c4a.tar.bz2
pipeworks-a31a9d573f6402bd80cb402cce6eeac0c48b7c4a.tar.xz
pipeworks-a31a9d573f6402bd80cb402cce6eeac0c48b7c4a.zip
Ugly attempt to fix detector tube.
Diffstat (limited to 'tubes.lua')
-rw-r--r--tubes.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/tubes.lua b/tubes.lua
index 894e38c..37ec1e2 100644
--- a/tubes.lua
+++ b/tubes.lua
@@ -389,7 +389,11 @@ if pipeworks.enable_detector_tube then
local meta = minetest.get_meta(pos)
meta:set_int("nitems", 1)
local name = minetest.get_node(pos).name
- minetest.after(detector_tube_step, minetest.registered_nodes[name].item_exit,pos)
+ minetest.after(0, function ()
+ minetest.after(0, function ()
+ minetest.after(0, minetest.registered_nodes[name].item_exit, pos)
+ end)
+ end)
end})
pipeworks.register_tube("pipeworks:detector_tube_off", "Detector tube segment", detector_plain_textures, noctr_textures,
end_textures, short_texture, detector_inv_texture,