From ab423cea90ba44d902b7c575bd486417e67a5e1a Mon Sep 17 00:00:00 2001 From: ANAND Date: Sun, 17 Mar 2019 16:19:00 +0530 Subject: [PATCH] Fix param passed to get_player_by_name being nil (#374) --- mods/ctf/ctf_map/schem_map.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_map/schem_map.lua b/mods/ctf/ctf_map/schem_map.lua index 91d3d02..5f7eab4 100644 --- a/mods/ctf/ctf_map/schem_map.lua +++ b/mods/ctf/ctf_map/schem_map.lua @@ -32,14 +32,14 @@ ctf_map.map = nil local map_str local old_server_status = minetest.get_server_status function minetest.get_server_status(name, joined) - local status = old_server_status() + local status = old_server_status(name, joined) if not ctf_map.map or not map_str then return status end local str = map_str - if minetest.get_player_by_name(name) then + if name and minetest.get_player_by_name(name) then str = minetest.colorize("#44FF44", str) end status = status .. "\n" .. str