mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2024-11-14 06:40:21 +01:00
Rename generate.lua -> pregenerate.lua
This commit is contained in:
parent
0de2f746cf
commit
a313244d07
|
@ -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()
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user