40f0c24552
- Settings to 'settings.lua' - Functions to 'functions.lua'
15 lines
351 B
Lua
15 lines
351 B
Lua
-- Functions for sneaker mod
|
|
|
|
|
|
-- Displays a message in log output
|
|
function sneaker.log(message)
|
|
minetest.log('action', '[' .. sneaker.modname .. '] ' .. message)
|
|
end
|
|
|
|
-- Displays a message in log output only if 'sneaker.debug' is set to 'true'
|
|
function sneaker.log_debug(message)
|
|
if sneaker.debug then
|
|
sneaker.log('[DEBUG] ' .. message)
|
|
end
|
|
end
|