Krypton

Krypton

22M Downloads

negative threshold causes NoSuchElementException

creeper123123321 opened this issue ยท 1 comments

commented

Krypton doesn't follow vanilla behavior of allowing negative values even if compression level is disabled, breaking some servers which use it like ViaProxy or VIAaaS

java.util.NoSuchElementException: decompress
	at Not Enough Crashes deobfuscated stack trace.(1.18.2+build.1) ~[?:?]
	at io.netty.channel.DefaultChannelPipeline.getContextOrDie(DefaultChannelPipeline.java:1073) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
	at io.netty.channel.DefaultChannelPipeline.remove(DefaultChannelPipeline.java:423) ~[netty-all-4.1.68.Final.jar:4.1.68.Final]
	at net.minecraft.network.ClientConnection.handler$zkj000$setCompressionThreshold(ClientConnection:1541) ~[?:?]
	at net.minecraft.network.ClientConnection.setCompressionThreshold(ClientConnection) ~[?:?]
	at
commented

80720b2 fixed