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
e8e3fcbc
Commit
e8e3fcbc
authored
Aug 23, 2022
by
Benj
Committed by
Luke H-W
Aug 24, 2022
Browse files
Fix RegionHandler versions
parent
c096d255
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/emu/grasscutter/server/http/dispatch/RegionHandler.java
View file @
e8e3fcbc
...
...
@@ -140,7 +140,11 @@ public final class RegionHandler implements Router {
regionData
=
region
.
getBase64
();
}
if
(
versionName
.
contains
(
"2.7.5"
)
||
versionName
.
contains
(
"2.8."
))
{
int
versionMajor
=
Integer
.
parseInt
(
versionName
.
split
(
"."
)[
0
]);
int
versionMinor
=
Integer
.
parseInt
(
versionName
.
split
(
"."
)[
1
]);
int
versionFix
=
Integer
.
parseInt
(
versionName
.
split
(
"."
)[
2
]);
if
(
versionMajor
>=
3
||
(
versionMajor
==
2
&&
versionMinor
==
7
&&
versionFix
==
50
)
||
(
versionMajor
==
2
&&
versionMinor
==
8
))
{
try
{
QueryCurrentRegionEvent
event
=
new
QueryCurrentRegionEvent
(
regionData
);
event
.
call
();
...
...
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