diff options
author | Gabriel PĂ©rez-Cerezo <gabriel@gpcf.eu> | 2018-02-21 19:58:45 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-02-21 20:03:34 +0100 |
commit | 481f6218a8b377a0826b7e080046b5a890702e12 (patch) | |
tree | 3baa24616afb8790eb16f882863241b9f7d91523 /advtrains/init.lua | |
parent | 4c512f1dc5755efc7afd55b58078ec466442f648 (diff) | |
download | advtrains-481f6218a8b377a0826b7e080046b5a890702e12.tar.gz advtrains-481f6218a8b377a0826b7e080046b5a890702e12.tar.bz2 advtrains-481f6218a8b377a0826b7e080046b5a890702e12.zip |
Log certain events in a logfile in the world directory
(also fix the output of /at_sync_ndb)
Diffstat (limited to 'advtrains/init.lua')
-rw-r--r-- | advtrains/init.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/advtrains/init.lua b/advtrains/init.lua index c1940ad..38252ae 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -141,7 +141,8 @@ advtrains.meseconrules = {x=0, y=1, z=-1}, {x=0, y=-1, z=-1}, {x=0, y=-2, z=0}} - + +advtrains.fpath=minetest.get_worldpath().."/advtrains" dofile(advtrains.modpath.."/path.lua") dofile(advtrains.modpath.."/trainlogic.lua") @@ -160,13 +161,14 @@ dofile(advtrains.modpath.."/misc_nodes.lua") dofile(advtrains.modpath.."/crafting.lua") dofile(advtrains.modpath.."/craft_items.lua") +dofile(advtrains.modpath.."/log.lua") + if minetest.global_exists("digtron") then dofile(advtrains.modpath.."/digtron.lua") end --load/save -advtrains.fpath=minetest.get_worldpath().."/advtrains" function advtrains.avt_load() local file, err = io.open(advtrains.fpath, "r") |