From ca1e91008ae8d3a9497e6adb4e794b6dabd87db4 Mon Sep 17 00:00:00 2001 From: Elkien3 Date: Sat, 3 Aug 2019 10:14:51 -0500 Subject: [PATCH] Update init.lua --- minetestmod/mumble/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/minetestmod/mumble/init.lua b/minetestmod/mumble/init.lua index 25355e9..2dc14ac 100644 --- a/minetestmod/mumble/init.lua +++ b/minetestmod/mumble/init.lua @@ -1,11 +1,13 @@ local player +local serverinfo minetest.register_globalstep(function(dtime) if minetest.localplayer and not player then player = minetest.localplayer + serverinfo = minetest.get_server_info() print("mumble id "..player:get_name()) - print("mumble context "..minetest.get_server_info().ip..":"..minetest.get_server_info().port) - minetest.display_chat_message("!Mumble loaded! This mod uses print() to send ingame positional data, your debug.txt may get quite large, and you may want to clear it periodically.") + print("mumble context "..serverinfo.ip..":"..serverinfo.port) + minetest.display_chat_message("!Mumble loaded! This mod uses print() to send ingame positional data, so your debug.txt may get quite large, and it's recommended to set debug_log_level to nothing if you haven't already.") end if player then local player_pos = player:get_pos() or {x=0, y=0, z=0}