mirror of
https://gitlab.com/gaelysam/mapgen_rivers.git
synced 2025-01-01 05:50:34 +01:00
Rename generate.lua -> pregenerate.lua
This commit is contained in:
parent
0de2f746cf
commit
a313244d07
@ -31,8 +31,8 @@ if sfile then
|
|||||||
end)
|
end)
|
||||||
else
|
else
|
||||||
-- Generate a map!!
|
-- Generate a map!!
|
||||||
local generate = dofile(mapgen_rivers.modpath .. '/generate.lua')
|
local pregenerate = dofile(mapgen_rivers.modpath .. '/pregenerate.lua')
|
||||||
minetest.register_on_mods_loaded(generate)
|
minetest.register_on_mods_loaded(pregenerate)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_on_mods_loaded(function()
|
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)
|
local niter = math.ceil(time/time_step)
|
||||||
time_step = time / niter
|
time_step = time / niter
|
||||||
|
|
||||||
local function generate()
|
local function pregenerate()
|
||||||
local grid = mapgen_rivers.grid
|
local grid = mapgen_rivers.grid
|
||||||
local size = grid.size
|
local size = grid.size
|
||||||
|
|
||||||
@ -74,4 +74,4 @@ local function generate()
|
|||||||
grid.offset_y = offset_y
|
grid.offset_y = offset_y
|
||||||
end
|
end
|
||||||
|
|
||||||
return generate
|
return pregenerate
|
Loading…
Reference in New Issue
Block a user