Fix: Move config loading code to init_config.lua.

master
aa6 2019-05-25 11:26:00 +03:00
parent a0f68e63f5
commit 4c25bf9273
4 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
0.9.0
0.9.1

View File

@ -28,7 +28,6 @@ minetest_wadsprint =
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()).."/init_config.lua")
dofile(minetest.get_modpath(minetest.get_current_modname()).."/init_hudbars.lua")
----------------------------------------------------------------------------------------------------

View File

@ -1,3 +1,6 @@
-- Loading global config.
dofile(minetest.get_modpath(minetest.get_current_modname()).."/config.lua")
-- Processing in-game settings. In-game settings are preferrable
-- over global config.lua values.
function minetest_wadsprint.load_minetest_settings_key(key,type)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB