mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-11-30 22:53:26 +01:00
Don't catch any exceptions in the underlying decoder in ProtocolLib.
This commit is contained in:
parent
feae8dd400
commit
20524c1c3c
@ -356,10 +356,10 @@ class ChannelInjector extends ByteToMessageDecoder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void decode(ChannelHandlerContext ctx, ByteBuf byteBuffer, List<Object> packets) throws Exception {
|
protected void decode(ChannelHandlerContext ctx, ByteBuf byteBuffer, List<Object> packets) throws Exception {
|
||||||
try {
|
byteBuffer.markReaderIndex();
|
||||||
byteBuffer.markReaderIndex();
|
DECODE_BUFFER.invoke(vanillaDecoder, ctx, byteBuffer, packets);
|
||||||
DECODE_BUFFER.invoke(vanillaDecoder, ctx, byteBuffer, packets);
|
|
||||||
|
try {
|
||||||
if (packets.size() > 0) {
|
if (packets.size() > 0) {
|
||||||
Object input = packets.get(0);
|
Object input = packets.get(0);
|
||||||
Class<?> packetClass = input.getClass();
|
Class<?> packetClass = input.getClass();
|
||||||
|
Loading…
Reference in New Issue
Block a user