From 4459a97fdf3c8fa3605cca65024cac3f9868e081 Mon Sep 17 00:00:00 2001 From: DogooFalchion Date: Thu, 29 Dec 2016 18:08:36 -0500 Subject: [PATCH] Document and fix the fishing quest count glitch in SSC. --- TShockAPI/PlayerData.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/TShockAPI/PlayerData.cs b/TShockAPI/PlayerData.cs index 44711bad..cc82cab6 100644 --- a/TShockAPI/PlayerData.cs +++ b/TShockAPI/PlayerData.cs @@ -438,8 +438,17 @@ namespace TShockAPI { player.TPlayer.buffType[k] = 0; } + + /* + * The following packets are sent twice because the server will not send a packet to a client + * if they have not spawned yet if the remoteclient is -1 + * This is for when players login via uuid or serverpassword instead of via + * the login command. + */ NetMessage.SendData(50, -1, -1, "", player.Index, 0f, 0f, 0f, 0); NetMessage.SendData(50, player.Index, -1, "", player.Index, 0f, 0f, 0f, 0); + + NetMessage.SendData(76, player.Index, -1, "", player.Index); NetMessage.SendData(76, -1, -1, "", player.Index); NetMessage.SendData(39, player.Index, -1, "", 400);