Merge pull request #1367 from DogooFalchion/fix_fishing

Document and fix the fishing quest count glitch in SSC.
This commit is contained in:
White 2016-12-30 12:09:14 +10:30 committed by GitHub
commit fa0d561a21

View file

@ -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);