From c0a53e23408f565ae4764a0af3b640196e4b7ae4 Mon Sep 17 00:00:00 2001 From: AntumDeluge Date: Sat, 27 May 2017 19:07:14 -0700 Subject: [PATCH] Add 'sneaker.log' method --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index 29357a4..15fa176 100644 --- a/init.lua +++ b/init.lua @@ -5,6 +5,10 @@ sneaker = {} sneaker.modname = minetest.get_current_modname() sneaker.modpath = minetest.get_modpath(sneaker.modname) +function sneaker.log(message) + minetest.log("action", "[" .. sneaker.modname .. "] " .. message) +end + local scripts = { "tnt_function", "spawn",