From aafed511a6d50b346d2a004862077357efc5765b Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Mon, 28 Feb 2022 00:34:28 -0800 Subject: [PATCH] Swap 0 with PlayerAnnounceResult.None In 44034c76496fab809d1c5aaccf586b95a087456d I added a magic 0 instead of a call to an enum because I was looking at an outdated diff that didn't have `None` as an option. Turns out this was added a day later in a commit I didn't see originally. Changed to `None` to make code better documentation wise. --- TShockAPI/TShock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index 93986a1f..b4effabf 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -254,7 +254,7 @@ namespace TShockAPI OTAPI.Hooks.NetMessage.PlayerAnnounce += (sender, args) => { //TShock handles this - args.Result = 0; + args.Result = OTAPI.Hooks.NetMessage.PlayerAnnounceResult.None; }; // if sqlite.interop cannot be found, try and search the runtimes folder. this usually happens when debugging tsapi // since it does not have the dependency installed directly