(1.2.5) Fix IndexOutOfBoundsException in EaglerXBungee
This commit is contained in:
parent
8ffd102664
commit
591f724d23
Binary file not shown.
|
@ -57,7 +57,7 @@ import net.md_5.bungee.BungeeCord;
|
||||||
*/
|
*/
|
||||||
public class EaglerXBungee extends Plugin {
|
public class EaglerXBungee extends Plugin {
|
||||||
|
|
||||||
public static final String NATIVE_BUNGEECORD_BUILD = "1.20-R0.3-SNAPSHOT:52ab21b:1844";
|
public static final String NATIVE_BUNGEECORD_BUILD = "1.20-R0.3-SNAPSHOT:e7e0b97:1845";
|
||||||
public static final String NATIVE_WATERFALL_BUILD = "1.20-R0.3-SNAPSHOT:a65bb68:578";
|
public static final String NATIVE_WATERFALL_BUILD = "1.20-R0.3-SNAPSHOT:a65bb68:578";
|
||||||
|
|
||||||
static {
|
static {
|
||||||
|
|
|
@ -36,7 +36,7 @@ public class EaglerChannelWrapper extends ChannelWrapper {
|
||||||
getHandle().pipeline().get(EaglerMinecraftDecoder.class).setProtocolVersion(protocol);
|
getHandle().pipeline().get(EaglerMinecraftDecoder.class).setProtocolVersion(protocol);
|
||||||
}
|
}
|
||||||
|
|
||||||
private Protocol lastProtocol = null;
|
private Protocol lastProtocol = Protocol.GAME;
|
||||||
|
|
||||||
public Protocol getEncodeProtocol() {
|
public Protocol getEncodeProtocol() {
|
||||||
EaglerMinecraftEncoder enc;
|
EaglerMinecraftEncoder enc;
|
||||||
|
|
|
@ -111,7 +111,7 @@ public class EaglerMinecraftDecoder extends MessageToMessageDecoder<WebSocketFra
|
||||||
boolean isInputDirect = buf.isDirect();
|
boolean isInputDirect = buf.isDirect();
|
||||||
if(!isInputDirect) {
|
if(!isInputDirect) {
|
||||||
int len = buf.readableBytes();
|
int len = buf.readableBytes();
|
||||||
ByteBuf newBuf = buf.alloc().directBuffer(len, len);
|
ByteBuf newBuf = buf.alloc().directBuffer(len);
|
||||||
buf.readBytes(newBuf, len);
|
buf.readBytes(newBuf, len);
|
||||||
buf = newBuf;
|
buf = newBuf;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: EaglercraftXBungee
|
name: EaglercraftXBungee
|
||||||
main: net.lax1dude.eaglercraft.v1_8.plugin.gateway_bungeecord.EaglerXBungee
|
main: net.lax1dude.eaglercraft.v1_8.plugin.gateway_bungeecord.EaglerXBungee
|
||||||
version: 1.2.4
|
version: 1.2.5
|
||||||
description: Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks
|
description: Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks
|
||||||
author: lax1dude
|
author: lax1dude
|
|
@ -1 +1 @@
|
||||||
1.2.4
|
1.2.5
|
Loading…
Reference in New Issue
Block a user