From a313244d0702af28cbb28c8d7aff3ddecf2b44d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20C?= Date: Wed, 23 Jun 2021 19:53:56 +0200 Subject: [PATCH] Rename generate.lua -> pregenerate.lua --- polygons.lua | 4 ++-- generate.lua => pregenerate.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) rename generate.lua => pregenerate.lua (97%) diff --git a/polygons.lua b/polygons.lua index 2e4c57e..a332146 100644 --- a/polygons.lua +++ b/polygons.lua @@ -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() diff --git a/generate.lua b/pregenerate.lua similarity index 97% rename from generate.lua rename to pregenerate.lua index 79c4ef4..b6e0986 100644 --- a/generate.lua +++ b/pregenerate.lua @@ -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