versionFix must be >= 50 not == 50 in RegionHandler

This commit is contained in:
Benj 2022-08-23 20:41:42 +08:00 committed by Luke H-W
parent a18a15bdfc
commit cc50baf26a
1 changed files with 1 additions and 1 deletions

View File

@ -144,7 +144,7 @@ public final class RegionHandler implements Router {
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)) {
if (versionMajor >= 3 || (versionMajor == 2 && versionMinor == 7 && versionFix >= 50) || (versionMajor == 2 && versionMinor == 8)) {
try {
QueryCurrentRegionEvent event = new QueryCurrentRegionEvent(regionData); event.call();