From: Novatux Date: Sat, 14 Jun 2014 14:54:31 +0000 (+0200) Subject: Ugly attempt to fix detector tube. X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=a31a9d573f6402bd80cb402cce6eeac0c48b7c4a;p=zefram%2Fminetest%2Fpipeworks.git Ugly attempt to fix detector tube. --- 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,