Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 16:12:42 +01:00
Handle any exception so it doesn't implode. (Still prints to the console.)
Dieser Commit ist enthalten in:
Ursprung
fc4a617da7
Commit
2144fa1837
@ -34,7 +34,7 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
|
|||||||
incomingTransformer.transform(id, bytebuf, newPacket);
|
incomingTransformer.transform(id, bytebuf, newPacket);
|
||||||
bytebuf.clear();
|
bytebuf.clear();
|
||||||
bytebuf = newPacket;
|
bytebuf = newPacket;
|
||||||
} catch (CancelException e) {
|
} catch (Exception e) {
|
||||||
bytebuf.clear();
|
bytebuf.clear();
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ public class ViaEncodeHandler extends MessageToByteEncoder {
|
|||||||
bytebuf.clear();
|
bytebuf.clear();
|
||||||
try {
|
try {
|
||||||
outgoingTransformer.transform(id, oldPacket, bytebuf);
|
outgoingTransformer.transform(id, oldPacket, bytebuf);
|
||||||
} catch (CancelException e) {
|
} catch (Exception e) {
|
||||||
bytebuf.clear();
|
bytebuf.clear();
|
||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren