mirror of
https://git.zelz.net/catfoolyou/Project164.git
synced 2025-12-14 08:47:40 +00:00
Fix disconnection crash
This commit is contained in:
@@ -1446,6 +1446,8 @@ public class Minecraft
|
||||
displayEaglercraftText("Note: " + var4.translateKey("fancyGraphicsNote"));
|
||||
}
|
||||
|
||||
displayEaglercraftText("Warning: world loading may take a while, so you may need to wait for a few seconds for the world to load and the lag will stop.");
|
||||
|
||||
if(this.gameSettings.showCoordinates) {
|
||||
displayEaglercraftText(EnumChatFormatting.LIGHT_PURPLE + "Note: use F+6 to hide the coordinates off of the screen (if you're in public)");
|
||||
}else {
|
||||
|
||||
@@ -9,10 +9,8 @@ public class Packet252SharedKey extends Packet
|
||||
private byte[] sharedSecret = new byte[0];
|
||||
private byte[] verifyToken = new byte[0];
|
||||
|
||||
public Packet252SharedKey() {}
|
||||
public Packet252SharedKey() {
|
||||
|
||||
public Packet252SharedKey(Object par1SecretKey, Object par2PublicKey, byte[] par3ArrayOfByte)
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -69,7 +69,7 @@ public class Client {
|
||||
crashScreenOptsDump = "window.eaglercraftOpts = " + conf.toString();
|
||||
}
|
||||
String serverWorkerURI = conf.optString("serverWorkerURI", null);
|
||||
EaglerAdapterImpl2.setWorldDatabaseName(conf.optString("worldsFolder", "MAIN"));
|
||||
//EaglerAdapterImpl2.setWorldDatabaseName(conf.optString("worldsFolder", "MAIN"));
|
||||
|
||||
registerErrorHandler();
|
||||
|
||||
|
||||
@@ -413,8 +413,8 @@ public class EaglerAdapterImpl2 {
|
||||
|
||||
EarlyLoadScreen.paintScreen();
|
||||
|
||||
voiceClient = startVoiceClient();
|
||||
rtcLANClient = startRTCLANClient();
|
||||
//voiceClient = startVoiceClient();
|
||||
//rtcLANClient = startRTCLANClient();
|
||||
|
||||
//todo: safely skip startRTCLANServer() if the integrated server is disabled:
|
||||
|
||||
@@ -4106,7 +4106,7 @@ public class EaglerAdapterImpl2 {
|
||||
}
|
||||
|
||||
public static final void serverLANCloseServer() {
|
||||
rtcLANServer.signalRemoteDisconnect("");
|
||||
//rtcLANServer.signalRemoteDisconnect("");
|
||||
}
|
||||
|
||||
public static final LANPeerEvent serverLANGetEvent(String clientId) {
|
||||
|
||||
Reference in New Issue
Block a user