From 07fa21f9929d0d36c13aefe83a91b5d250e7fea9 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Sat, 10 Nov 2018 22:29:01 +0100 Subject: Increase savefile version to 2 (Master downgrade protection) --- advtrains/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'advtrains') diff --git a/advtrains/init.lua b/advtrains/init.lua index 3af679a..c7cbf9d 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -11,7 +11,7 @@ end --advtrains -DUMP_DEBUG_SAVE = false +DUMP_DEBUG_SAVE = true --Constant for maximum connection value/division of the circle AT_CMAX = 16 @@ -314,6 +314,7 @@ advtrains.avt_save = function(remove_players_from_wagons) --versions: -- 1 - Initial new save format. + -- 2 - version as of tss branch 11-2018+ local il_save if advtrains.interlocking then il_save = advtrains.interlocking.db.save() @@ -325,7 +326,7 @@ advtrains.avt_save = function(remove_players_from_wagons) atc = advtrains.atc.save_data(), ndb = advtrains.ndb.save_data(), interlocking = il_save, - version = 1, + version = 2, } local datastr = minetest.serialize(save_tbl) if not datastr then -- cgit v1.2.3