diff --git a/src/Prospect.Unreal/Net/UNetConnection.cs b/src/Prospect.Unreal/Net/UNetConnection.cs index 36674fc..f21cc47 100644 --- a/src/Prospect.Unreal/Net/UNetConnection.cs +++ b/src/Prospect.Unreal/Net/UNetConnection.cs @@ -666,7 +666,10 @@ public abstract class UNetConnection : UPlayer if (bunch.ChIndex >= MaxChannelSize) { - throw new Exception("Bunch channel index exceeds channel limit"); + // Don't crash the whole server on a malformed/misaligned bunch (e.g. a + // version/bit-alignment mismatch with the client). Log and drop the packet. + Logger.Error("[HS-SEQ] Bunch channel index {Idx} exceeds limit {Max} (netVer={Ver}) — dropping packet", bunch.ChIndex, MaxChannelSize, (int)bunch.EngineNetVer()); + return; } }