[antum] Add attribute 'antum.verbose':

Used for logging output
master
AntumDeluge 2017-06-16 23:35:17 -07:00
parent 98e490aa89
commit b604617365
2 changed files with 9 additions and 1 deletions

View File

@ -83,7 +83,10 @@ end
-- Registers a craft & displays a log message
function antum.registerCraft(craft)
antum.logAction('Registering craft recipe for "' .. craft.output .. '"')
if antum.verbose then
antum.logAction('Registering craft recipe for "' .. craft.output .. '"')
end
minetest.register_craft(craft)
end

View File

@ -29,6 +29,11 @@ antum = {}
antum.modname = minetest.get_current_modname()
antum.modpath = minetest.get_modpath(antum.modname)
antum.verbose = false
if minetest.settings:get_bool('log_mods') then
antum.verbose = true
end
local scripts = {
'functions',