Use builtin logging system and appropriate loglevels

This commit is contained in:
Gael-de-Sailly
2022-01-03 16:22:55 +01:00
parent c3a798933f
commit 417ce1bcbc
4 changed files with 11 additions and 11 deletions

View File

@ -33,7 +33,7 @@ local function pregenerate(keep_loaded)
local tectonic_step = tectonic_speed * time_step
collectgarbage()
for i=1, niter do
print("[mapgen_rivers] Iteration " .. i .. " of " .. niter)
minetest.log("info", "[mapgen_rivers] Iteration " .. i .. " of " .. niter)
model:diffuse(time_step)
model:flow()