Move settings variables & functions:
- Settings to 'settings.lua' - Functions to 'functions.lua'
This commit is contained in:
committed by
Jordan Irwin
parent
e2badd6a6f
commit
40f0c24552
14
functions.lua
Normal file
14
functions.lua
Normal 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
|
||||
Reference in New Issue
Block a user