Move settings variables & functions:

- Settings to 'settings.lua'
- Functions to 'functions.lua'
This commit is contained in:
AntumDeluge
2017-05-27 19:30:56 -07:00
committed by Jordan Irwin
parent e2badd6a6f
commit 40f0c24552
3 changed files with 27 additions and 13 deletions

14
functions.lua Normal file
View File

@@ -0,0 +1,14 @@
-- 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