Did some more things
This commit is contained in:
parent
c797cca9d9
commit
a13ebd4ff3
File diff suppressed because one or more lines are too long
|
@ -143,8 +143,8 @@ public class GuiMultiplayer extends GuiScreen {
|
|||
public void drawScreen(int var1, int var2, float var3) {
|
||||
this.drawDefaultBackground();
|
||||
this.drawCenteredString(this.fontRenderer, "Play Multiplayer", this.width / 2, this.height / 4 - 60 + 20, 16777215);
|
||||
//this.drawString(this.fontRenderer, "Minecraft Multiplayer is currently not finished, but there", this.width / 2 - 140, this.height / 4 - 60 + 60 + 0, 10526880);
|
||||
//this.drawString(this.fontRenderer, "is some buggy early testing going on.", this.width / 2 - 140, this.height / 4 - 60 + 60 + 9, 10526880);
|
||||
this.drawString(this.fontRenderer, "Alpha Multiplayer is currently not finished, but there", this.width / 2 - 140, this.height / 4 - 80 + 60 + 0, 10526880);
|
||||
this.drawString(this.fontRenderer, "is some buggy early testing going on.", this.width / 2 - 140, this.height / 4 - 80 + 60 + 9, 10526880);
|
||||
this.drawString(this.fontRenderer, "Server IP:", this.width / 2 - 100, this.height / 4 - 50 + 60 + 36, 10526880);
|
||||
this.drawString(this.fontRenderer, "Username:", this.width / 2 - 100, this.height / 4 - 90 + 60 + 36, 10526880);
|
||||
int var4 = this.width / 2 - 100;
|
||||
|
|
|
@ -21,13 +21,8 @@ public class NetClientHandler extends NetHandler {
|
|||
|
||||
public void processReadPackets() {
|
||||
if(!this.disconnected) {
|
||||
Thread thread = new Thread(new Runnable() {
|
||||
public void run() {
|
||||
NetClientHandler.this.netManager.readPacket();
|
||||
}
|
||||
});
|
||||
thread.start();
|
||||
}
|
||||
}
|
||||
|
||||
public void handleLogin(Packet1Login var1) {
|
||||
|
|
|
@ -47,24 +47,19 @@ public class NetworkManager {
|
|||
}
|
||||
|
||||
public void addToSendQueue(Packet var1) {
|
||||
Thread thread = new Thread(new Runnable () {
|
||||
public void run() {
|
||||
if(!NetworkManager.this.isServerTerminating) {
|
||||
Object var2 = NetworkManager.this.sendQueueLock;
|
||||
if(!this.isServerTerminating) {
|
||||
Object var2 = this.sendQueueLock;
|
||||
synchronized(var2) {
|
||||
NetworkManager.this.sendQueueByteLength += var1.getPacketSize() + 1;
|
||||
this.sendQueueByteLength += var1.getPacketSize() + 1;
|
||||
if(var1.isChunkDataPacket) {
|
||||
NetworkManager.this.chunkDataPackets.add(var1);
|
||||
this.chunkDataPackets.add(var1);
|
||||
} else {
|
||||
NetworkManager.this.dataPackets.add(var1);
|
||||
this.dataPackets.add(var1);
|
||||
}
|
||||
NetworkManager.this.sendPacket();
|
||||
this.sendPacket();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
thread.start();
|
||||
}
|
||||
|
||||
private ByteArrayOutputStream sendBuffer;
|
||||
|
||||
|
|
14443
web/js/app.js
14443
web/js/app.js
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user