Skip to content

Commit

Permalink
more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
caesarakalaeii committed Aug 17, 2023
1 parent f36008c commit eb51ded
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions BattleBitAPI/Server/ServerListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,18 +596,18 @@ private async Task mInternalOnClientConnecting(TcpClient client)
playerInternal.CurrentLoadout = loadout;
playerInternal.CurrentWearings = wearings;

//Modifications
{
readStream.Reset();
if (!await networkStream.TryRead(readStream, 4, source.Token))
throw new Exception("Unable to read the Modifications Size");
var modificationSize = (int)readStream.ReadUInt32();

readStream.Reset();
if (!await networkStream.TryRead(readStream, modificationSize, source.Token))
throw new Exception("Unable to read the Modifications");
playerInternal._Modifications.Read(readStream);
}
////Modifications
//{
// readStream.Reset();
// if (!await networkStream.TryRead(readStream, 4, source.Token))
// throw new Exception("Unable to read the Modifications Size");
// var modificationSize = (int)readStream.ReadUInt32();
//
// readStream.Reset();
// if (!await networkStream.TryRead(readStream, modificationSize, source.Token))
// throw new Exception("Unable to read the Modifications");
// playerInternal._Modifications.Read(readStream);
//}

//Call new instance callback if needed.
if (isNewClient)
Expand Down

0 comments on commit eb51ded

Please sign in to comment.