From ed5239cb5685037970027fe7aca17160a41e98a3 Mon Sep 17 00:00:00 2001 From: ClobberXD Date: Thu, 29 Nov 2018 21:23:27 +0530 Subject: [PATCH] Remove unused arg from ctf_colors.get_color and ctf_colors.get_irc_color --- mods/ctf_bounties/init.lua | 2 +- mods/ctf_events/init.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mods/ctf_bounties/init.lua b/mods/ctf_bounties/init.lua index 687bd02..d1f4be3 100644 --- a/mods/ctf_bounties/init.lua +++ b/mods/ctf_bounties/init.lua @@ -2,7 +2,7 @@ local bountied_player = nil local bounty_score = 0 local function announce(name) - local _, tcolor = ctf_colors.get_color(bountied_player, ctf.player(bountied_player)) + local _, tcolor = ctf_colors.get_color(ctf.player(bountied_player)) tcolor = tcolor:gsub("0x", "#") minetest.chat_send_player(name, minetest.colorize("#fff326", "The next person to kill ") .. diff --git a/mods/ctf_events/init.lua b/mods/ctf_events/init.lua index d485493..6484122 100644 --- a/mods/ctf_events/init.lua +++ b/mods/ctf_events/init.lua @@ -20,7 +20,7 @@ local function get_colorcodes(name) if not name then return "", "" end - local color = ctf_colors.get_irc_color(name, ctf.player(name)) + local color = ctf_colors.get_irc_color(ctf.player(name)) local clear = "\x0F" if color then color = "\x03" .. color @@ -69,7 +69,7 @@ function ctf_events.update_row(i, player, name, tplayer, evt) -- One if evt.one then - local _, tone_hex = ctf_colors.get_color(evt.one, ctf.player(evt.one)) + local _, tone_hex = ctf_colors.get_color(ctf.player(evt.one)) if hud:exists(player, idx) then hud:change(player, idx, "text", evt.one) hud:change(player, idx, "number", tone_hex) @@ -91,7 +91,7 @@ function ctf_events.update_row(i, player, name, tplayer, evt) -- Two if evt.two then - local _, ttwo_hex = ctf_colors.get_color(evt.two, ctf.player(evt.two)) + local _, ttwo_hex = ctf_colors.get_color(ctf.player(evt.two)) if hud:exists(player, idx2) then hud:change(player, idx2, "text", evt.two) hud:change(player, idx2, "number", ttwo_hex)