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
parent
09a29f87ef
commit
8d5b612596
2
init.lua
2
init.lua
|
@ -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 |
Loading…
Reference in New Issue