From ff9cb9f8581b0cb4cbb6eb81afcbd2efbe75c5fb Mon Sep 17 00:00:00 2001 From: ohayo Date: Tue, 4 Feb 2025 12:13:47 +1000 Subject: [PATCH] Change the cast PacketTypes for 74 to its corresponding definition --- TShockAPI/Commands.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index d82f10e2..f630165f 100644 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -2530,8 +2530,8 @@ namespace TShockAPI { foreach (TSPlayer ply in TShock.Players.Where(p => p != null && p.Active && p.TPlayer.name.ToLower().Equals(args.Parameters[0].ToLower()))) { - //this will always tell the client that they have not done the quest today. - ply.SendData((PacketTypes)74, ""); + //this will always tell the client that they have not done the quest today. * Update: We have a definition for Packet 74, why are you sending it as a cast to PacketTypes? + ply.SendData(PacketTypes.AnglerQuest, ""); } args.Player.SendSuccessMessage(GetString("Removed {0} players from the angler quest completion list for today.", result)); }