mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2025-01-31 22:51:22 +01:00
update compat for krypton
This commit is contained in:
parent
ebdd4a71c6
commit
d1fe3f8f6e
@ -75,7 +75,13 @@ public class FabricDecodeHandler extends MessageToMessageDecoder<ByteBuf> {
|
||||
|
||||
@Override
|
||||
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {
|
||||
if (evt instanceof PipelineReorderEvent) {
|
||||
boolean kryptonReorder = false;
|
||||
switch (evt.toString()) {
|
||||
case "COMPRESSION_THRESHOLD_UPDATED":
|
||||
case "COMPRESSION_ENABLED":
|
||||
kryptonReorder = true;
|
||||
}
|
||||
if (evt instanceof PipelineReorderEvent || kryptonReorder) {
|
||||
reorder(ctx);
|
||||
}
|
||||
super.userEventTriggered(ctx, evt);
|
||||
|
@ -17,8 +17,7 @@
|
||||
"viaversion": ">=4.6.0"
|
||||
},
|
||||
"breaks": {
|
||||
"viafabricplus": "*",
|
||||
"krypton": "*"
|
||||
"viafabricplus": "*"
|
||||
},
|
||||
"environment": "*",
|
||||
"authors": [
|
||||
|
Loading…
Reference in New Issue
Block a user