Gay crash
This commit is contained in:
parent
154a55e961
commit
587c3e329f
|
@ -324,8 +324,10 @@ public class MinecraftServer implements Runnable {
|
||||||
}
|
}
|
||||||
|
|
||||||
BindTo var13 = this.bindTo;
|
BindTo var13 = this.bindTo;
|
||||||
NetworkHandler var2 = new NetworkHandler(8080);
|
if(!NetworkHandler.gay) {
|
||||||
var13.c.add(var2);
|
NetworkHandler var2 = new NetworkHandler(25565);
|
||||||
|
var13.c.add(var2);
|
||||||
|
}
|
||||||
|
|
||||||
for(int var17 = 0; var17 < var13.c.size(); ++var17) {
|
for(int var17 = 0; var17 < var13.c.size(); ++var17) {
|
||||||
NetworkHandler var15 = (NetworkHandler)var13.c.get(var17);
|
NetworkHandler var15 = (NetworkHandler)var13.c.get(var17);
|
||||||
|
|
|
@ -20,15 +20,18 @@ public final class NetworkHandler {
|
||||||
private boolean h = false;
|
private boolean h = false;
|
||||||
public String address;
|
public String address;
|
||||||
private byte[] stringBytes = new byte[64];
|
private byte[] stringBytes = new byte[64];
|
||||||
|
public static boolean gay = false;
|
||||||
|
|
||||||
|
|
||||||
public NetworkHandler(int port) {
|
public NetworkHandler(int port) {
|
||||||
|
gay = true;
|
||||||
Log.setLog(new DummyLogger());
|
Log.setLog(new DummyLogger());
|
||||||
try {
|
try {
|
||||||
WebSocketNetworkManager.startServer(port);
|
WebSocketNetworkManager.startServer(port);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
throw new Error(e.getLocalizedMessage());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public final void close() {
|
public final void close() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user