fix some build issues

add option for server port
This commit is contained in:
iceBear67 committed 2026-01-14 20:14:37 +08:00
1 parent 034e58d9f5
commit 5a51b350ad
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));
}));
}
}