summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-22 17:51:57 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2013-06-22 17:51:57 -0400
commit47b6c25abed46d28ec6b3fddb74f9622029f79b4 (patch)
tree4f8e64b077a84eea233bd97eeab5bdee00bbd0f0
parent00e6d148d5cc1b8f939d779c88727f66f00ce6f9 (diff)
downloadpipeworks-47b6c25abed46d28ec6b3fddb74f9622029f79b4.tar
pipeworks-47b6c25abed46d28ec6b3fddb74f9622029f79b4.tar.gz
pipeworks-47b6c25abed46d28ec6b3fddb74f9622029f79b4.tar.bz2
pipeworks-47b6c25abed46d28ec6b3fddb74f9622029f79b4.tar.xz
pipeworks-47b6c25abed46d28ec6b3fddb74f9622029f79b4.zip
minor tweaks to various dofile() calls, moved one from tubes.lua to init.lua
-rw-r--r--init.lua19
-rw-r--r--tubes.lua5
2 files changed, 13 insertions, 11 deletions
diff --git a/init.lua b/init.lua
index 5165d8f..e662bc4 100644
--- 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")
diff --git a/tubes.lua b/tubes.lua
index 018da3d..7ea3410 100644
--- 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")