Set args.Result to 0 in PlayerAnnounce hook

In
8204e2b3f9,
`PlayerAnnounceResult` was introduced, replacing `HookResult`, which changed
the result for `PlayerAnnounce` to a byte called `PlayerAnnounceResult`.
There are two options, `SendToPlayer` and `WriteToConsole`, set to 1 and 2
respectively. Because TShock handles this, we're setting it to 0, i.e.,
don't notify anybody.
This commit is contained in:
Lucas Nicodemus 2022-02-28 00:20:00 -08:00
parent acde508c53
commit 44034c7649

View file

@ -254,7 +254,7 @@ namespace TShockAPI
OTAPI.Hooks.NetMessage.PlayerAnnounce += (sender, args) =>
{
//TShock handles this
args.Result = OTAPI.HookResult.Cancel;
args.Result = 0;
};
// 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