Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
Hooks.MessageBuffer.NameCollision += OnNameCollision;
}

static void OnUpdateConnectedClients(object? sender, HookEvents.Terraria.Netplay.UpdateConnectedClientsEventArgs args)

Check warning on line 34 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 34 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 34 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 34 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 34 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 34 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
if (!args.ContinueExecution) return;
args.ContinueExecution = false;
Expand All @@ -42,7 +42,7 @@
}
}

static void OnBroadcastChatMessage(object? sender, HookEvents.Terraria.Chat.ChatHelper.BroadcastChatMessageEventArgs args)

Check warning on line 45 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 45 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 45 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 45 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 45 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 45 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
if (!args.ContinueExecution) return;
float r = args.color.R, g = args.color.G, b = args.color.B;
Expand All @@ -51,7 +51,7 @@

if (!cancel)
{
args.color = new Microsoft.Xna.Framework.Color(r, g, b);
args.color = new Microsoft.Xna.Framework.Color((int)r, (int)g, (int)b);
}

args.ContinueExecution = !cancel;
Expand Down Expand Up @@ -149,7 +149,7 @@
}
}

static void OnGreetPlayer(object? sender, HookEvents.Terraria.NetMessage.greetPlayerEventArgs args)

Check warning on line 152 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 152 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 152 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 152 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 152 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 152 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
if (!args.ContinueExecution) return;
if (_hookManager.InvokeNetGreetPlayer(args.plr))
Expand Down Expand Up @@ -180,7 +180,7 @@
}
}

static void OnConnectionAccepted(object? sender, HookEvents.Terraria.Netplay.OnConnectionAcceptedEventArgs args)

Check warning on line 183 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 183 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / MacOS

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 183 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 183 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Ubuntu

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 183 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.

Check warning on line 183 in TerrariaServerAPI/TerrariaApi.Server/Hooking/NetHooks.cs

View workflow job for this annotation

GitHub Actions / Windows

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
{
if (!args.ContinueExecution) return;
args.ContinueExecution = false;
Expand Down
Loading