From 3163c88d4a31c0c0cc61763aace3ef536006be92 Mon Sep 17 00:00:00 2001 From: James Puleo Date: Wed, 5 Oct 2022 05:32:27 -0400 Subject: [PATCH] Allow `PacketTypes.SyncLoadout` during early connection This mirrors the behavior in `MessageBuffer` when only accepting specific packets under state `10`. --- TShockAPI/TShock.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index a2c52ad3..d3fadac3 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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;