aboutsummaryrefslogtreecommitdiff
path: root/advtrains/init.lua
diff options
context:
space:
mode:
authorY. Wang <yw05@forksworld.de>2023-10-04 20:07:24 +0200
committerY. Wang <y5nw@protonmail.com>2024-11-04 17:17:51 +0100
commit425b0993d355b9f45ddd400bd4925f9f1a5bd34d (patch)
tree77a105e5bbf28c03e31c5c30e5866387d618e174 /advtrains/init.lua
parentbed66e0f901ae9f8e21675035f174292120fea4f (diff)
downloadadvtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.tar.gz
advtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.tar.bz2
advtrains-425b0993d355b9f45ddd400bd4925f9f1a5bd34d.zip
Autogenerate .tr files from .po files
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 f6f8f9b..cb2214d 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")
advtrains.texture = dofile(advtrains.modpath.."/texture.lua")
@@ -233,7 +235,6 @@ end
dofile(advtrains.modpath.."/lzb.lua")
-
--load/save
-- backup variables, used if someone should accidentally delete a sub-mod