From 2712d7119c1c7a56dd7ec00717d297b8c214488f 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 5eef594..f7b8b12 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',