mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-03 00:31:51 +00:00
Set Server Port After Loading Config
This commit is contained in:
@@ -131,11 +131,7 @@ public class GameEngine {
|
||||
private final static ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
||||
private final static Lock lock = new ReentrantLock();
|
||||
|
||||
/**
|
||||
* Port and Cycle rate.
|
||||
*/
|
||||
static {
|
||||
serverlistenerPort = (GameConstants.WORLD == 1) ? 43594 : 43596 + GameConstants.WORLD;
|
||||
shutdownServer = false;
|
||||
}
|
||||
|
||||
@@ -158,6 +154,7 @@ public class GameEngine {
|
||||
}
|
||||
}
|
||||
}
|
||||
serverlistenerPort = (GameConstants.WORLD == 1) ? 43594 : 43596 + GameConstants.WORLD;
|
||||
|
||||
System.out.println("Starting game engine..");
|
||||
if (GameConstants.SERVER_DEBUG) {
|
||||
|
||||
Reference in New Issue
Block a user