mirror of
http://git.eaglercraft.rip/eaglercraft/eaglercraft-1.8.git
synced 2025-04-29 01:51:58 -05:00
(1.3.6) Fixed two protocol V4 issues in EaglerXBungee
This commit is contained in:
parent
6bf027c913
commit
aea12b5e67
Binary file not shown.
@ -64,8 +64,8 @@ import net.md_5.bungee.BungeeCord;
|
|||||||
*/
|
*/
|
||||||
public class EaglerXBungee extends Plugin {
|
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 = "1.21-R0.1-SNAPSHOT:0aa2871:1893";
|
||||||
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_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 = "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";
|
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";
|
||||||
|
@ -235,18 +235,20 @@ public class GameProtocolMessageController {
|
|||||||
pkt = sendQueueV4.remove(0);
|
pkt = sendQueueV4.remove(0);
|
||||||
owner.sendData(GamePluginMessageConstants.V4_CHANNEL, pkt);
|
owner.sendData(GamePluginMessageConstants.V4_CHANNEL, pkt);
|
||||||
}else {
|
}else {
|
||||||
int i, j, sendCount, totalLen;
|
int i, j, sendCount, totalLen, lastLen;
|
||||||
while(!sendQueueV4.isEmpty()) {
|
while(!sendQueueV4.isEmpty()) {
|
||||||
sendCount = 0;
|
sendCount = 0;
|
||||||
totalLen = 0;
|
totalLen = 0;
|
||||||
Iterator<byte[]> itr = sendQueueV4.iterator();
|
Iterator<byte[]> itr = sendQueueV4.iterator();
|
||||||
do {
|
do {
|
||||||
i = itr.next().length;
|
i = itr.next().length;
|
||||||
totalLen += GamePacketOutputBuffer.getVarIntSize(i) + i;
|
lastLen = GamePacketOutputBuffer.getVarIntSize(i) + i;
|
||||||
|
totalLen += lastLen;
|
||||||
++sendCount;
|
++sendCount;
|
||||||
}while(totalLen < 32760 && itr.hasNext());
|
}while(totalLen < 32760 && itr.hasNext());
|
||||||
if(totalLen >= 32760) {
|
if(totalLen >= 32760) {
|
||||||
--sendCount;
|
--sendCount;
|
||||||
|
totalLen -= lastLen;
|
||||||
}
|
}
|
||||||
if(sendCount <= 1) {
|
if(sendCount <= 1) {
|
||||||
pkt = sendQueueV4.remove(0);
|
pkt = sendQueueV4.remove(0);
|
||||||
|
@ -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.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
|
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.3.5
|
1.3.6
|
Loading…
x
Reference in New Issue
Block a user