Globalize modpath and worldpath

This commit is contained in:
Gaël C
2021-06-03 19:21:45 +02:00
parent 0427b42d17
commit 19efeaaff6
5 changed files with 15 additions and 10 deletions

View File

@ -1,6 +1,8 @@
mapgen_rivers = {}
local modpath = minetest.get_modpath(minetest.get_current_modname()) .. '/'
mapgen_rivers.modpath = modpath
mapgen_rivers.world_data_path = minetest.get_worldpath() .. '/river_data'
dofile(modpath .. 'settings.lua')