Add logging messages

This commit is contained in:
AntumDeluge
2017-05-27 19:15:23 -07:00
committed by Jordan Irwin
parent 3d06833867
commit 58d9d44c35
2 changed files with 10 additions and 0 deletions

View File

@@ -11,6 +11,11 @@ end
sneaker.spawn_cap = tonumber(minetest.settings:get("sneaker_spawn_cap")) or 50
if minetest.settings:get_bool("log_mods", false) then
minetest.log("action", "Loading mod \"" .. sneaker.modname .. "\" ...")
sneaker.log("Spawn cap: " .. tostring(sneaker.spawn_cap))
end
local scripts = {
"tnt_function",
"spawn",