Fix crash due to missed updation of ctf_color.get_color in ctf_bounties (#427)

This commit is contained in:
Lone_Wolf 2019-07-05 09:18:59 -07:00 committed by ANAND
parent 102792032a
commit 045281e60d

View file

@ -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