mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-25 16:53:22 +08:00
Do not add default region if there are already regions
This commit is contained in:
parent
d0ab5fa5df
commit
cc98c56916
@ -60,7 +60,8 @@ public final class RegionHandler implements Router {
|
|||||||
if(SERVER.runMode != ServerRunMode.HYBRID && configuredRegions.size() == 0) {
|
if(SERVER.runMode != ServerRunMode.HYBRID && configuredRegions.size() == 0) {
|
||||||
Grasscutter.getLogger().error("[Dispatch] There are no game servers available. Exiting due to unplayable state.");
|
Grasscutter.getLogger().error("[Dispatch] There are no game servers available. Exiting due to unplayable state.");
|
||||||
System.exit(1);
|
System.exit(1);
|
||||||
} else configuredRegions.add(new Region("os_usa", DISPATCH_INFO.defaultName,
|
} else if (configuredRegions.size() == 0)
|
||||||
|
configuredRegions.add(new Region("os_usa", DISPATCH_INFO.defaultName,
|
||||||
lr(GAME_INFO.accessAddress, GAME_INFO.bindAddress),
|
lr(GAME_INFO.accessAddress, GAME_INFO.bindAddress),
|
||||||
lr(GAME_INFO.accessPort, GAME_INFO.bindPort)));
|
lr(GAME_INFO.accessPort, GAME_INFO.bindPort)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user