mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-11-22 10:05:12 +01:00
Fixed encoding not properly working with other packet reading libraries
Injecting a message to byte encoder beforehand would break outbound packets in ViaVersion. This solution is a good fix which won't impact anything.
This commit is contained in:
parent
c0fb81946e
commit
91319402f3
@ -54,8 +54,10 @@ public class BukkitEncodeHandler extends MessageToByteEncoder implements ViaHand
|
||||
throw (Error) e.getCause();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
bytebuf.clear().writeBytes((ByteBuf) o);
|
||||
}
|
||||
transform(bytebuf);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user