1
0
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:
Matthew 2019-02-12 11:45:52 -05:00 committed by GitHub
commit a48f6444cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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