mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 15:37:41 +00:00
Singleplayer shit
This commit is contained in:
@@ -140,7 +140,7 @@ public class GuiMainMenu extends GuiScreen {
|
||||
StringTranslate var2 = StringTranslate.getInstance();
|
||||
int var4 = this.height / 4 + 48;
|
||||
|
||||
if(false) { // EaglerAdapter.isIntegratedServerAvailable()
|
||||
if(EaglerAdapter.isIntegratedServerAvailable()) { // EaglerAdapter.isIntegratedServerAvailable()
|
||||
this.buttonList.add(new GuiButton(1, this.width / 2 - 100, var4, var2.translateKey("menu.singleplayer")));
|
||||
this.buttonList.add(new GuiButton(2, this.width / 2 - 100, var4 + 24 * 1, var2.translateKey("menu.multiplayer")));
|
||||
this.buttonList.add(new GuiButton(3, this.width / 2 - 100, var4 + 24 * 2, var2.translateKey("menu.forkme")));
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
package net.minecraft.src;
|
||||
|
||||
import java.io.DataInput;
|
||||
import java.io.DataOutput;
|
||||
import java.io.IOException;
|
||||
import java.io.*;
|
||||
|
||||
public class Packet2ClientProtocol extends Packet {
|
||||
private int protocolVersion;
|
||||
private String username;
|
||||
private String serverHost;
|
||||
private int viewDistance;
|
||||
private int serverPort;
|
||||
|
||||
public Packet2ClientProtocol() {
|
||||
}
|
||||
@@ -17,8 +15,9 @@ public class Packet2ClientProtocol extends Packet {
|
||||
this.protocolVersion = par1;
|
||||
this.username = par2Str;
|
||||
this.serverHost = par3Str;
|
||||
this.viewDistance = par4;
|
||||
this.serverPort = par4;
|
||||
}
|
||||
|
||||
/**
|
||||
* Abstract. Reads the raw packet data from the data stream.
|
||||
*/
|
||||
@@ -26,7 +25,7 @@ public class Packet2ClientProtocol extends Packet {
|
||||
this.protocolVersion = par1DataInputStream.readByte();
|
||||
this.username = readString(par1DataInputStream, 16);
|
||||
this.serverHost = readString(par1DataInputStream, 255);
|
||||
this.viewDistance = par1DataInputStream.readInt();
|
||||
this.serverPort = par1DataInputStream.readInt();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -36,7 +35,7 @@ public class Packet2ClientProtocol extends Packet {
|
||||
par1DataOutputStream.writeByte(this.protocolVersion);
|
||||
writeString(this.username, par1DataOutputStream);
|
||||
writeString(this.serverHost, par1DataOutputStream);
|
||||
par1DataOutputStream.writeInt(this.viewDistance);
|
||||
par1DataOutputStream.writeInt(this.serverPort);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,9 +65,4 @@ public class Packet2ClientProtocol extends Packet {
|
||||
public String getUsername() {
|
||||
return this.username;
|
||||
}
|
||||
|
||||
public int getViewDistance() {
|
||||
return this.viewDistance;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user