Fix crash due to missed updation of ctf_color.get_color in ctf_bounties (#427)
This commit is contained in:
parent
102792032a
commit
045281e60d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue