aboutsummaryrefslogtreecommitdiff
path: root/advtrains/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r--advtrains/init.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua
index 053b3dd..a7fbc3f 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -22,8 +22,6 @@ Copyright (C) 2016-2020 Moritz Blei (orwell96) and contributors
local lot = os.clock()
minetest.log("action", "[advtrains] Loading...")
-attrans = minetest.get_translator("advtrains")
-
--advtrains
advtrains = {trains={}, player_to_train_mapping={}}
@@ -200,6 +198,10 @@ advtrains.meseconrules =
advtrains.fpath=minetest.get_worldpath().."/advtrains"
+advtrains.poconvert = dofile(advtrains.modpath.."/poconvert.lua")
+advtrains.poconvert.from_flat("advtrains")
+attrans = minetest.get_translator("advtrains")
+
advtrains.speed = dofile(advtrains.modpath.."/speed.lua")
dofile(advtrains.modpath.."/path.lua")
@@ -231,7 +233,6 @@ end
dofile(advtrains.modpath.."/lzb.lua")
-
--load/save
-- backup variables, used if someone should accidentally delete a sub-mod