diff --git a/VERSION b/VERSION index c52db98..09a3acf 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.3 \ No newline at end of file +0.6.0 \ No newline at end of file diff --git a/init.lua b/init.lua index 8edca81..64df226 100755 --- a/init.lua +++ b/init.lua @@ -24,8 +24,12 @@ minetest_wadsprint = }, version = io.open(minetest.get_modpath(minetest.get_current_modname()).."/VERSION","r"):read("*all"), savepath = minetest.get_worldpath().."/mod_minetest_wadsprint_saved_players_stats.dat", + worldconfig = minetest.get_worldpath().."/mod_minetest_wadsprint_config.lua", } -dofile(minetest.get_modpath(minetest.get_current_modname()).."/config.lua") +dofile(minetest.get_modpath(minetest.get_current_modname()).."/config.lua") -- Load default config. +if file_exists(minetest_wadsprint.worldconfig) then -- Load world config (if present). + dofile(minetest_wadsprint.worldconfig) +end dofile(minetest.get_modpath(minetest.get_current_modname()).."/init_hudbars.lua") ---------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------- api.stats() -- diff --git a/util/minetest_wadsprint_version.png b/util/minetest_wadsprint_version.png index 75874d4..e7bfcd3 100644 Binary files a/util/minetest_wadsprint_version.png and b/util/minetest_wadsprint_version.png differ