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
6949711e
Commit
6949711e
authored
Aug 23, 2022
by
Benj
Committed by
Luke H-W
Aug 24, 2022
Browse files
Actually fix RegionHandler
parent
ce1f9b2e
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/http/dispatch/RegionHandler.java
View file @
6949711e
...
...
@@ -28,6 +28,7 @@ import java.security.spec.X509EncodedKeySpec;
import
java.util.*
;
import
java.util.concurrent.ConcurrentHashMap
;
import
java.security.Signature
;
import
java.util.regex.Pattern
;
import
static
emu
.
grasscutter
.
config
.
Configuration
.*;
import
static
emu
.
grasscutter
.
net
.
proto
.
QueryRegionListHttpRspOuterClass
.
QueryRegionListHttpRsp
;
...
...
@@ -140,9 +141,10 @@ public final class RegionHandler implements Router {
regionData
=
region
.
getBase64
();
}
int
versionMajor
=
Integer
.
parseInt
(
versionName
.
split
(
"."
)[
0
]);
int
versionMinor
=
Integer
.
parseInt
(
versionName
.
split
(
"."
)[
1
]);
int
versionFix
=
Integer
.
parseInt
(
versionName
.
split
(
"."
)[
2
]);
String
[]
versionCode
=
versionName
.
replaceAll
(
Pattern
.
compile
(
"[a-zA-Z]"
).
pattern
(),
""
).
split
(
"\\."
);
int
versionMajor
=
Integer
.
parseInt
(
versionCode
[
0
]);
int
versionMinor
=
Integer
.
parseInt
(
versionCode
[
1
]);
int
versionFix
=
Integer
.
parseInt
(
versionCode
[
2
]);
if
(
versionMajor
>=
3
||
(
versionMajor
==
2
&&
versionMinor
==
7
&&
versionFix
>=
50
)
||
(
versionMajor
==
2
&&
versionMinor
==
8
))
{
try
{
...
...
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