From acc10dcd85ecd96084ac118fdef1dba8d2fb13e1 Mon Sep 17 00:00:00 2001 From: flux <25628292+fluxionary@users.noreply.github.com> Date: Thu, 29 Aug 2019 02:05:10 +0000 Subject: [PATCH] show ore generation stats --- gravelsieve/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gravelsieve/init.lua b/gravelsieve/init.lua index c2f004f..73fab6a 100644 --- a/gravelsieve/init.lua +++ b/gravelsieve/init.lua @@ -116,12 +116,13 @@ local function add_ores() end end end + minetest.log("action", "[gravelsieve] ore probabilties:") local overall_probability = 0.0 for name,probability in pairs(gravelsieve.ore_probability) do - minetest.log("info", ("[gravelsieve] %-32s %.02f"):format(name, probability)) + minetest.log("action", ("[gravelsieve] %-32s %.02f"):format(name, probability)) overall_probability = overall_probability + 1.0/probability end - minetest.log("info", ("[gravelsieve] Overall probability %f"):format(overall_probability)) + minetest.log("action", ("[gravelsieve] Overall probability %f"):format(overall_probability)) end minetest.after(1, add_ores)