Only enable compression for 1.8 clients
This commit is contained in:
parent
4e94c278da
commit
c626254825
@ -585,7 +585,7 @@ public final class UserConnection implements ProxiedPlayer
|
|||||||
|
|
||||||
public void setCompressionThreshold(int compressionThreshold)
|
public void setCompressionThreshold(int compressionThreshold)
|
||||||
{
|
{
|
||||||
if ( ch.getHandle().isActive() && this.compressionThreshold == -1 )
|
if ( ch.getHandle().isActive() && this.compressionThreshold == -1 && getPendingConnection().getVersion() >= ProtocolConstants.MINECRAFT_1_8 )
|
||||||
{
|
{
|
||||||
this.compressionThreshold = compressionThreshold;
|
this.compressionThreshold = compressionThreshold;
|
||||||
unsafe.sendPacket( new SetCompression( compressionThreshold ) );
|
unsafe.sendPacket( new SetCompression( compressionThreshold ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user