Gay crash

This commit is contained in:
PeytonPlayz595 2023-12-18 18:22:40 -05:00
parent 154a55e961
commit 587c3e329f
2 changed files with 11 additions and 6 deletions

View File

@ -324,8 +324,10 @@ public class MinecraftServer implements Runnable {
}
BindTo var13 = this.bindTo;
NetworkHandler var2 = new NetworkHandler(8080);
if(!NetworkHandler.gay) {
NetworkHandler var2 = new NetworkHandler(25565);
var13.c.add(var2);
}
for(int var17 = 0; var17 < var13.c.size(); ++var17) {
NetworkHandler var15 = (NetworkHandler)var13.c.get(var17);

View File

@ -20,14 +20,17 @@ public final class NetworkHandler {
private boolean h = false;
public String address;
private byte[] stringBytes = new byte[64];
public static boolean gay = false;
public NetworkHandler(int port) {
gay = true;
Log.setLog(new DummyLogger());
try {
WebSocketNetworkManager.startServer(port);
} catch (Exception e) {
e.printStackTrace();
throw new Error(e.getLocalizedMessage());
}
}