Rename generate.lua -> pregenerate.lua

This commit is contained in:
Gaël C 2021-06-23 19:53:56 +02:00
parent 0de2f746cf
commit a313244d07
2 changed files with 4 additions and 4 deletions

View File

@ -31,8 +31,8 @@ if sfile then
end)
else
-- Generate a map!!
local generate = dofile(mapgen_rivers.modpath .. '/generate.lua')
minetest.register_on_mods_loaded(generate)
local pregenerate = dofile(mapgen_rivers.modpath .. '/pregenerate.lua')
minetest.register_on_mods_loaded(pregenerate)
end
minetest.register_on_mods_loaded(function()

View File

@ -13,7 +13,7 @@ local time_step = mapgen_rivers.settings.evol_time_step
local niter = math.ceil(time/time_step)
time_step = time / niter
local function generate()
local function pregenerate()
local grid = mapgen_rivers.grid
local size = grid.size
@ -74,4 +74,4 @@ local function generate()
grid.offset_y = offset_y
end
return generate
return pregenerate