(1.2.5) Fix IndexOutOfBoundsException in EaglerXBungee

This commit is contained in:
lax1dude 2024-06-05 18:39:12 -07:00
parent 8ffd102664
commit 591f724d23
6 changed files with 5 additions and 5 deletions

View File

@ -57,7 +57,7 @@ import net.md_5.bungee.BungeeCord;
*/
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";
static {

View File

@ -36,7 +36,7 @@ public class EaglerChannelWrapper extends ChannelWrapper {
getHandle().pipeline().get(EaglerMinecraftDecoder.class).setProtocolVersion(protocol);
}
private Protocol lastProtocol = null;
private Protocol lastProtocol = Protocol.GAME;
public Protocol getEncodeProtocol() {
EaglerMinecraftEncoder enc;

View File

@ -111,7 +111,7 @@ public class EaglerMinecraftDecoder extends MessageToMessageDecoder<WebSocketFra
boolean isInputDirect = buf.isDirect();
if(!isInputDirect) {
int len = buf.readableBytes();
ByteBuf newBuf = buf.alloc().directBuffer(len, len);
ByteBuf newBuf = buf.alloc().directBuffer(len);
buf.readBytes(newBuf, len);
buf = newBuf;
}

View File

@ -1,5 +1,5 @@
name: EaglercraftXBungee
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
author: lax1dude

View File

@ -1 +1 @@
1.2.4
1.2.5