diff options
author | orwell96 <mono96.mml@gmail.com> | 2017-02-28 14:38:59 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-02-28 14:38:59 +0100 |
commit | d51a00c8232e2500783f1a04ec7ad1bf01cadd8b (patch) | |
tree | e7b5e6a4964fa6f87f987ef77d09ac903ba338e3 /advtrains/advtrains_luaautomation/init.lua | |
parent | aa2ec0fc0337de5facb7ebf9adb3dca4f9fefdaf (diff) | |
download | advtrains-d51a00c8232e2500783f1a04ec7ad1bf01cadd8b.tar.gz advtrains-d51a00c8232e2500783f1a04ec7ad1bf01cadd8b.tar.bz2 advtrains-d51a00c8232e2500783f1a04ec7ad1bf01cadd8b.zip |
Add passive component naming
Diffstat (limited to 'advtrains/advtrains_luaautomation/init.lua')
-rw-r--r-- | advtrains/advtrains_luaautomation/init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/advtrains/advtrains_luaautomation/init.lua b/advtrains/advtrains_luaautomation/init.lua index feea372..87f5921 100644 --- a/advtrains/advtrains_luaautomation/init.lua +++ b/advtrains/advtrains_luaautomation/init.lua @@ -25,6 +25,7 @@ dofile(mp.."/interrupt.lua") dofile(mp.."/active_common.lua") dofile(mp.."/atc_rail.lua") dofile(mp.."/operation_panel.lua") +dofile(mp.."/pcnaming.lua") if mesecon then dofile(mp.."/p_mesecon_iface.lua") end @@ -39,13 +40,13 @@ else atprint("luaautomation reading file:",filename) local tbl = minetest.deserialize(file:read("*a")) if type(tbl) == "table" then - atprint(tbl) if tbl.version==1 then for envname, data in pairs(tbl.envs) do atlatc.envs[envname]=atlatc.env_load(envname, data) end atlatc.active.load(tbl.active) atlatc.interrupt.load(tbl.interrupt) + atlatc.pcnaming.load(tbl.pcnaming) end else minetest.log("error", " Failed to read advtrains_luaautomation save data from file "..filename..": Not a table!") @@ -69,6 +70,7 @@ atlatc.save = function() envs=envdata, active = atlatc.active.save(), interrupt = atlatc.interrupt.save(), + pcnaming = atlatc.pcnaming.save(), } local datastr = minetest.serialize(save_tbl) |