fix some build issues
add option for server port
This commit is contained in:
3 files changed
+4
-9
No files matched your search
@@ -10,6 +10,7 @@ import java.util.concurrent.ThreadLocalRandom;
|
||||
public class SFConfig {
|
||||
public boolean enableOfflineExempt = true;
|
||||
public String domain = "localhost";
|
||||
public int port = 25565;
|
||||
public String webApiBase = "localhost";
|
||||
public String serverSecret = RandomStringUtils.random(32);
|
||||
public int httpPort = 8080;
|
||||
|
||||
@@ -57,7 +57,7 @@ public class RoomTeleporter {
|
||||
)
|
||||
);
|
||||
networkHandler.send(new StoreCookieS2CPacket(ROOM_COOKIE, cookie), PacketCallbacks.always(() -> {
|
||||
networkHandler.sendPacket(new ServerTransferS2CPacket(config.domain, serverSupplier.get().getServerPort()));
|
||||
networkHandler.sendPacket(new ServerTransferS2CPacket(config.domain, config.port));
|
||||
}));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user