mirror of
https://github.com/diamante0018/ServerList.git
synced 2025-04-20 19:25:44 +00:00
maint: undo last change
This commit is contained in:
parent
11befb154e
commit
430f367330
@ -118,7 +118,6 @@ public class Main {
|
||||
|
||||
if (main.getMode() == Mode.Master) {
|
||||
main.createMasterServer();
|
||||
main.getServer().setMagicOverride(magicOverride);
|
||||
System.out.println("Master Server startup");
|
||||
while (running.get() && main.getServer().isValid()) {
|
||||
main.getServer().await();
|
||||
|
@ -37,8 +37,6 @@ public class MasterServer {
|
||||
|
||||
private ServerSocket socket;
|
||||
|
||||
private boolean magicOverride;
|
||||
|
||||
private boolean valid;
|
||||
|
||||
private final ServerList serverList;
|
||||
@ -75,10 +73,6 @@ public class MasterServer {
|
||||
|
||||
serverList.removeInactive();
|
||||
|
||||
if (this.magicOverride) {
|
||||
versionBE = 0; // Handled in serverList.createResponse
|
||||
}
|
||||
|
||||
var toSend = serverList.createResponse(versionBE);
|
||||
|
||||
try {
|
||||
@ -164,10 +158,6 @@ public class MasterServer {
|
||||
}
|
||||
}
|
||||
|
||||
public void setMagicOverride(boolean magicOverride) {
|
||||
this.magicOverride = magicOverride;
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
// Can happen if multiple instances are launched
|
||||
if (socket == null || socket.isClosed()) {
|
||||
|
@ -104,7 +104,7 @@ public class ServerList {
|
||||
var server = it.next();
|
||||
// Let's make sure we send the client only servers on the same version
|
||||
// 2023 Update: They changed the magic so add option to disable this check
|
||||
if (server.getVersion() == version || version == 0) {
|
||||
if (server.getVersion() == version) {
|
||||
try {
|
||||
// Let's flip the bytes of this one too
|
||||
var ipBE = server.getAddress().getAddress();
|
||||
|
Loading…
x
Reference in New Issue
Block a user