Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
cc98c569
Commit
cc98c569
authored
May 17, 2022
by
YukariChiba
Committed by
Melledy
May 17, 2022
Browse files
Do not add default region if there are already regions
parent
d0ab5fa5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/http/dispatch/RegionHandler.java
View file @
cc98c569
...
...
@@ -60,7 +60,8 @@ public final class RegionHandler implements Router {
if
(
SERVER
.
runMode
!=
ServerRunMode
.
HYBRID
&&
configuredRegions
.
size
()
==
0
)
{
Grasscutter
.
getLogger
().
error
(
"[Dispatch] There are no game servers available. Exiting due to unplayable state."
);
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
.
accessPort
,
GAME_INFO
.
bindPort
)));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment