Its a bungee problem

This commit is contained in:
catfoolyou
2025-02-24 17:01:46 -05:00
parent c40c57299f
commit afda45a8e2
11 changed files with 9 additions and 152 deletions

View File

@@ -1136,6 +1136,7 @@ public class EaglerAdapterImpl2 {
public static final boolean connectionOpen() {
return clientSocket != null && clientSocket.isOpen();
}
public static final void writePacket(byte[] packet) {
if(clientSocket != null && clientSocket.isOpen()) {
System.out.println("[EaglerAdapterImpl2] - Writing packet");
@@ -1147,6 +1148,9 @@ public class EaglerAdapterImpl2 {
if(!readPackets.isEmpty()) {
return readPackets.remove(0);
}
else {
System.err.println("[EaglerAdapterImpl2] - Cannot read packet!");
}
}
return null;
}

View File

@@ -68,7 +68,6 @@ public class WebsocketNetworkManager implements INetworkManager {
private LinkedList<ByteBuffer> readChunks = new LinkedList<>();
public void processReadPackets() {
System.out.println("[WebsocketNetworkManager] - processReadPackets called");
readChunks.clear();
if(oldChunkBuffer != null) {

View File

@@ -75,7 +75,7 @@ public class GuiConnecting extends GuiScreen {
}
this.clientHandler = new NetClientHandler(this.mc, uri, 0);
System.out.println("Sending packets");
System.out.println("[GuiConnecting] - Sending packets");
this.clientHandler.addToSendQueue(new Packet2ClientProtocol(78, EaglerProfile.username, uria, port));
this.clientHandler.addToSendQueue(new Packet250CustomPayload("EAG|MySkin", EaglerProfile.getSkinPacket()));
this.clientHandler.addToSendQueue(new Packet250CustomPayload("EAG|MyCape", EaglerProfile.getCapePacket()));
@@ -89,7 +89,6 @@ public class GuiConnecting extends GuiScreen {
}
}
if(this.clientHandler != null) {
System.out.println("[GuiConnecting] - Processing packets");
this.clientHandler.processReadPackets();
}
else {

View File

@@ -93,9 +93,6 @@ public class NetClientHandler extends NetHandler {
if (this.netManager != null) {
this.netManager.processReadPackets();
}
else {
System.err.println("[NetClientHandler] - netManager is null!");
}
if(!EaglerAdapter.connectionOpen()) {
if(!this.disconnected) {