(1.3.6) Fixed two protocol V4 issues in EaglerXBungee

This commit is contained in:
lax1dude 2025-01-26 13:17:39 -08:00
parent 6bf027c913
commit aea12b5e67
5 changed files with 8 additions and 6 deletions
gateway/EaglercraftXBungee
EaglerXBungee-Latest.jar
src/main
java/net/lax1dude/eaglercraft/v1_8/plugin/gateway_bungeecord
resources
gateway_version

View File

@ -64,8 +64,8 @@ import net.md_5.bungee.BungeeCord;
*/
public class EaglerXBungee extends Plugin {
public static final String NATIVE_BUNGEECORD_BUILD = "1.21-R0.1-SNAPSHOT:1265a99:1892";
public static final String NATIVE_BUNGEECORD_BUILD_DL = "https://ci.md-5.net/job/BungeeCord/1892/artifact/bootstrap/target/BungeeCord.jar";
public static final String NATIVE_BUNGEECORD_BUILD = "1.21-R0.1-SNAPSHOT:0aa2871:1893";
public static final String NATIVE_BUNGEECORD_BUILD_DL = "https://ci.md-5.net/job/BungeeCord/1893/artifact/bootstrap/target/BungeeCord.jar";
public static final String NATIVE_WATERFALL_BUILD = "1.21-R0.1-SNAPSHOT:9ab9e2b:582";
public static final String NATIVE_WATERFALL_BUILD_DL = "https://api.papermc.io/v2/projects/waterfall/versions/1.21/builds/582/downloads/waterfall-1.21-582.jar";

View File

@ -235,18 +235,20 @@ public class GameProtocolMessageController {
pkt = sendQueueV4.remove(0);
owner.sendData(GamePluginMessageConstants.V4_CHANNEL, pkt);
}else {
int i, j, sendCount, totalLen;
int i, j, sendCount, totalLen, lastLen;
while(!sendQueueV4.isEmpty()) {
sendCount = 0;
totalLen = 0;
Iterator<byte[]> itr = sendQueueV4.iterator();
do {
i = itr.next().length;
totalLen += GamePacketOutputBuffer.getVarIntSize(i) + i;
lastLen = GamePacketOutputBuffer.getVarIntSize(i) + i;
totalLen += lastLen;
++sendCount;
}while(totalLen < 32760 && itr.hasNext());
if(totalLen >= 32760) {
--sendCount;
totalLen -= lastLen;
}
if(sendCount <= 1) {
pkt = sendQueueV4.remove(0);

View File

@ -1,5 +1,5 @@
name: EaglercraftXBungee
main: net.lax1dude.eaglercraft.v1_8.plugin.gateway_bungeecord.EaglerXBungee
version: 1.3.5
version: 1.3.6
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.3.5
1.3.6