miroir de
https://gitlab.com/gaelysam/mapgen_rivers.git
synchronisé 2025-10-23 13:45:45 +02:00
Refactor to use only Settings objects for settings.
Also remove globally stored path for modpath and data. Basically use less global variables for better adaptation to multithreading.
Cette révision appartient à :
@@ -123,11 +123,7 @@ end
|
||||
|
||||
local modpath = ""
|
||||
if minetest then
|
||||
if minetest.global_exists('mapgen_rivers') then
|
||||
modpath = mapgen_rivers.modpath .. "terrainlib_lua/"
|
||||
else
|
||||
modpath = minetest.get_modpath(minetest.get_current_modname()) .. "terrainlib_lua/"
|
||||
end
|
||||
modpath = minetest.get_modpath(minetest.get_current_modname()) .. "terrainlib_lua/"
|
||||
end
|
||||
|
||||
local rivermapper = dofile(modpath .. "rivermapper.lua")
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur