mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
Merge pull request #750 from plague006/fix_print_except
Fix print_except
This commit is contained in:
commit
a48f6444cc
@ -33,9 +33,9 @@ end
|
||||
|
||||
--- Takes msg and prints it to all players except provided player
|
||||
-- @param msg <string> The message to print
|
||||
-- @param color <table> the color to use for the message
|
||||
-- @param player <LuaPlayer> the player not to send the message to
|
||||
function Module.print_except(msg, color, player)
|
||||
-- @param color <table> the color to use for the message, defaults to white
|
||||
function Module.print_except(msg, player, color)
|
||||
if not color then
|
||||
color = Color.white
|
||||
end
|
||||
@ -216,7 +216,7 @@ end
|
||||
-- @param warning_prefix <string> The name of the module/warning
|
||||
-- @param player <LuaPlayer> the player not to send the message to
|
||||
function Module.silent_action_warning(warning_prefix, msg, player)
|
||||
Module.print_except(prefix .. msg, Color.yellow, player)
|
||||
Module.print_except(prefix .. msg, player, Color.yellow)
|
||||
msg = format('%s %s', warning_prefix, msg)
|
||||
log(msg)
|
||||
Server.to_discord_bold(msg)
|
||||
|
Loading…
x
Reference in New Issue
Block a user