Skip to content

Commit f67d230

Browse files
committed
Set broadcast colour as integer
1 parent 29dc46f commit f67d230

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • TerrariaServerAPI/TerrariaApi.Server/Hooking

TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static void OnBroadcastChatMessage(object? sender, HookEvents.Terraria.Chat.Chat
5151

5252
if (!cancel)
5353
{
54-
args.color = new Microsoft.Xna.Framework.Color(r, g, b);
54+
args.color = new Microsoft.Xna.Framework.Color((int)r, (int)g, (int)b);
5555
}
5656

5757
args.ContinueExecution = !cancel;

0 commit comments

Comments
 (0)