Allow PacketTypes.SyncLoadout during early connection

This mirrors the behavior in `MessageBuffer` when only accepting
specific packets under state `10`.
This commit is contained in:
James Puleo 2022-10-05 05:32:27 -04:00
parent 4d35ee395e
commit 3163c88d4a
No known key found for this signature in database
GPG key ID: 3E16C7EFA34FB15D

View file

@ -1605,7 +1605,7 @@ namespace TShockAPI
}
if ((player.State < 10 || player.Dead) && (int)type > 12 && (int)type != 16 && (int)type != 42 && (int)type != 50 &&
(int)type != 38 && (int)type != 21 && (int)type != 22)
(int)type != 38 && (int)type != 21 && (int)type != 22 && type != PacketTypes.SyncLoadout)
{
e.Handled = true;
return;