From ee38202cbcab7a0fc8bf3f54593dd57684e32b2a Mon Sep 17 00:00:00 2001 From: James Stevenson Date: Wed, 27 Jan 2016 13:08:47 -0500 Subject: [PATCH] Check for player for /me --- mods/kalite/shout.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mods/kalite/shout.lua b/mods/kalite/shout.lua index 310e8fc..fc5d96b 100644 --- a/mods/kalite/shout.lua +++ b/mods/kalite/shout.lua @@ -167,13 +167,15 @@ minetest.register_on_chat_message(function(name, message) end end) - minetest.register_chatcommand("me", { params = "", description = "Perform an action for nearby players.", privs = {shout = true}, func = function(name, param) local shouter = minetest.get_player_by_name(name) + if not shouter then + return + end local spos = shouter:getpos() -- Minetest library (modified)