fix(network): Adds setting NetState.PacketEncoder only if not null (#460)
This commit is contained in:
parent
40352cd566
commit
6295699b3d
1 changed files with 1 additions and 1 deletions
|
|
@ -417,7 +417,7 @@ namespace Server.Network
|
|||
|
||||
// Comment out these lines to turn off huffman compression
|
||||
state.CompressionEnabled = true;
|
||||
state.PacketEncoder = NetworkCompression.Compress;
|
||||
state.PacketEncoder ??= NetworkCompression.Compress;
|
||||
|
||||
state.SendSupportedFeature();
|
||||
state.SendCharacterList();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue