mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:47:40 +00:00
Its a bungee problem
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user