minor tweaks to various dofile() calls, moved one from tubes.lua to init.lua
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sat, 22 Jun 2013 21:51:57 +0000 (17:51 -0400)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Sat, 22 Jun 2013 21:51:57 +0000 (17:51 -0400)
init.lua
tubes.lua

index 5165d8f123b5be43bad6f4ea45c7251aa143bc2c..e662bc4f37a86a2a13033f126536bdeb201bc333 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -366,14 +366,17 @@ end
 end
 end
 
-dofile(minetest.get_modpath("pipeworks").."/tubes.lua")
-dofile(minetest.get_modpath("pipeworks").."/devices.lua")
-dofile(minetest.get_modpath("pipeworks").."/autoplace.lua")
-dofile(minetest.get_modpath("pipeworks").."/crafts.lua")
-dofile(minetest.get_modpath("pipeworks").."/flowing_logic.lua")
-dofile(minetest.get_modpath("pipeworks").."/compat.lua")
-dofile(minetest.get_modpath("pipeworks").."/item_transport.lua")
-dofile(minetest.get_modpath("pipeworks").."/autocrafter.lua")
+local modpath = minetest.get_modpath("pipeworks")
+
+dofile(modpath.."/tubes.lua")
+dofile(modpath.."/teleport_tube.lua")
+dofile(modpath.."/devices.lua")
+dofile(modpath.."/autoplace.lua")
+dofile(modpath.."/crafts.lua")
+dofile(modpath.."/flowing_logic.lua")
+dofile(modpath.."/compat.lua")
+dofile(modpath.."/item_transport.lua")
+dofile(modpath.."/autocrafter.lua")
 
 minetest.register_alias("pipeworks:deployer_off", "technic:deployer_off")
 minetest.register_alias("pipeworks:deployer_on", "technic:deployer_on")
index 018da3da015a0de402d2c203b4ff79a793f5cb42..7ea34101b826b7d8bb789a247f28409a9e505488 100644 (file)
--- a/tubes.lua
+++ b/tubes.lua
@@ -509,7 +509,6 @@ minetest.register_abm({nodenames={"group:sand_tube"},interval=1,chance=1,
                                object:remove()
                        end
                end
-       end})
+       end
+})
 
-modpath=minetest.get_modpath("pipeworks")
-dofile(modpath.."/teleport_tube.lua")