Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-26 08:10:09 +01:00
Fix spam, update to version 0.4.3
Dieser Commit ist enthalten in:
Ursprung
4cdfd72700
Commit
ea6c648e4f
@ -1,4 +1,4 @@
|
|||||||
# ViaVersion 0.4.2
|
# ViaVersion 0.4.3
|
||||||
**Allows the connection of 1.8 clients to 1.9**
|
**Allows the connection of 1.8 clients to 1.9**
|
||||||
|
|
||||||
This plugin modifies netty to allow connection of 1.9 clients to 1.8,
|
This plugin modifies netty to allow connection of 1.9 clients to 1.8,
|
||||||
|
@ -44,11 +44,15 @@ public class ViaDecodeHandler extends ByteToMessageDecoder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||||
|
if (!(cause.getCause().getCause() instanceof CancelException)) {
|
||||||
if (!(cause.getCause() instanceof CancelException)) {
|
if (!(cause.getCause() instanceof CancelException)) {
|
||||||
if (cause instanceof Exception) {
|
if (!(cause instanceof CancelException)) {
|
||||||
|
System.out.println("throwing");
|
||||||
|
if (cause instanceof Exception)
|
||||||
throw (Exception) cause;
|
throw (Exception) cause;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -71,10 +71,14 @@ public class ViaEncodeHandler extends MessageToByteEncoder {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {
|
||||||
|
if (!(cause.getCause().getCause() instanceof CancelException)) {
|
||||||
if (!(cause.getCause() instanceof CancelException)) {
|
if (!(cause.getCause() instanceof CancelException)) {
|
||||||
if(cause instanceof Exception){
|
if (!(cause instanceof CancelException)) {
|
||||||
|
System.out.println("throwing");
|
||||||
|
if (cause instanceof Exception)
|
||||||
throw (Exception) cause;
|
throw (Exception) cause;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
name: ViaVersion
|
name: ViaVersion
|
||||||
main: us.myles.ViaVersion.ViaVersionPlugin
|
main: us.myles.ViaVersion.ViaVersionPlugin
|
||||||
author: _MylesC
|
author: _MylesC
|
||||||
version: 0.4.2
|
version: 0.4.3
|
||||||
load: startup
|
load: startup
|
||||||
loadbefore: [ProtocolLib, ProxyPipe]
|
loadbefore: [ProtocolLib, ProxyPipe]
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren