[antum] Add attribute 'antum.verbose':
Used for logging output
This commit is contained in:
parent
98e490aa89
commit
b604617365
@ -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
|
||||
|
||||
|
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user