Add 'sneaker.log' method
This commit is contained in:
parent
f838db1cef
commit
c0a53e2340
4
init.lua
4
init.lua
@ -5,6 +5,10 @@ sneaker = {}
|
|||||||
sneaker.modname = minetest.get_current_modname()
|
sneaker.modname = minetest.get_current_modname()
|
||||||
sneaker.modpath = minetest.get_modpath(sneaker.modname)
|
sneaker.modpath = minetest.get_modpath(sneaker.modname)
|
||||||
|
|
||||||
|
function sneaker.log(message)
|
||||||
|
minetest.log("action", "[" .. sneaker.modname .. "] " .. message)
|
||||||
|
end
|
||||||
|
|
||||||
local scripts = {
|
local scripts = {
|
||||||
"tnt_function",
|
"tnt_function",
|
||||||
"spawn",
|
"spawn",
|
||||||
|
Loading…
Reference in New Issue
Block a user