Updated savepath to mod security requirements. (you should never write in your mod directory though, only read; the mod directory is not always writable. Use the world directory if you have to save something) https://forum.minetest.net/viewtopic.php?t=12471

master
aa6 2017-10-25 23:03:38 +03:00
parent 09a29f87ef
commit 8d5b612596
3 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
0.4.38
0.4.39

View File

@ -23,7 +23,7 @@ minetest_wadsprint =
-- stamina:
},
version = io.open(minetest.get_modpath(minetest.get_current_modname()).."/VERSION","r"):read("*all"),
savepath = minetest.get_modpath(minetest.get_current_modname()).."/saved_players_stats.dat",
savepath = minetest.get_worldpath().."/mod_minetest_wadsprint_saved_players_stats.dat",
}
dofile(minetest.get_modpath(minetest.get_current_modname()).."/config.lua")
dofile(minetest.get_modpath(minetest.get_current_modname()).."/init_hudbars.lua")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 546 B

After

Width:  |  Height:  |  Size: 2.1 KiB