Prevent generation when config is not acknowledged by server

This commit is contained in:
s809
2024-04-16 21:55:02 +05:00
parent c1f2803c56
commit 05fba12038
2 changed files with 2 additions and 1 deletions
@@ -75,6 +75,7 @@ public class ClientNetworkState implements Closeable
private void onConfigChanged()
{
this.configReceived = false;
this.getClient().sendMessage(new RemotePlayerConfigMessage(new MultiplayerConfig()));
}
@@ -125,7 +125,7 @@ public class NettyClient extends NettyEventSource implements INettyConnection, A
// Remove IPv6 brackets
host = host.replaceAll("[\\[\\]]", "");
this.address = new InetSocketAddress(host port);
this.address = new InetSocketAddress(host, port);
if (this.channel != null)
{