mod-sneeker/functions.lua
2021-05-06 19:31:05 -07:00

15 lines
351 B
Lua

-- Functions for sneeker mod
-- Displays a message in log output
function sneeker.log(message)
minetest.log('action', '[' .. sneeker.modname .. '] ' .. message)
end
-- Displays a message in log output only if 'sneeker.debug' is set to 'true'
function sneeker.log_debug(message)
if sneeker.debug then
sneeker.log('[DEBUG] ' .. message)
end
end