2017-05-28 04:54:26 +02:00
|
|
|
-- Functions for sneeker mod
|
2017-05-28 04:30:56 +02:00
|
|
|
|
|
|
|
|
|
|
|
-- Displays a message in log output
|
2017-05-28 04:54:26 +02:00
|
|
|
function sneeker.log(message)
|
|
|
|
minetest.log('action', '[' .. sneeker.modname .. '] ' .. message)
|
2017-05-28 04:30:56 +02:00
|
|
|
end
|
|
|
|
|
2017-05-28 04:54:26 +02:00
|
|
|
-- 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)
|
2017-05-28 04:30:56 +02:00
|
|
|
end
|
|
|
|
end
|