From 045281e60d627b2aca2c05ac6de35c5c0885ad45 Mon Sep 17 00:00:00 2001 From: Lone_Wolf Date: Fri, 5 Jul 2019 09:18:59 -0700 Subject: [PATCH] Fix crash due to missed updation of ctf_color.get_color in ctf_bounties (#427) --- mods/ctf/ctf_bounties/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_bounties/init.lua b/mods/ctf/ctf_bounties/init.lua index 236a5fc..261cabb 100644 --- a/mods/ctf/ctf_bounties/init.lua +++ b/mods/ctf/ctf_bounties/init.lua @@ -44,10 +44,10 @@ local function bounty_player(target) for _, player in pairs(minetest.get_connected_players()) do local name = player:get_player_name() if bountied_player ~= name then - local _, prev_color = ctf_colors.get_color(prev, ctf.player(prev)) + local prev_color = ctf_colors.get_color(prev, ctf.player(prev)).css minetest.chat_send_player(player:get_player_name(), minetest.colorize("#fff326", "Player ") .. - minetest.colorize(prev_color:gsub("0x", "#"), prev) .. + minetest.colorize(prev_color, prev) .. minetest.colorize("#fff326", " no longer has a bounty on their head!")) end end