mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 08:39:07 +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 ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(1);
|
||||||
private final static Lock lock = new ReentrantLock();
|
private final static Lock lock = new ReentrantLock();
|
||||||
|
|
||||||
/**
|
|
||||||
* Port and Cycle rate.
|
|
||||||
*/
|
|
||||||
static {
|
static {
|
||||||
serverlistenerPort = (GameConstants.WORLD == 1) ? 43594 : 43596 + GameConstants.WORLD;
|
|
||||||
shutdownServer = false;
|
shutdownServer = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,6 +154,7 @@ public class GameEngine {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
serverlistenerPort = (GameConstants.WORLD == 1) ? 43594 : 43596 + GameConstants.WORLD;
|
||||||
|
|
||||||
System.out.println("Starting game engine..");
|
System.out.println("Starting game engine..");
|
||||||
if (GameConstants.SERVER_DEBUG) {
|
if (GameConstants.SERVER_DEBUG) {
|
||||||
|
|||||||
Reference in New Issue
Block a user