Skip to content

Commit

Permalink
Fix RegionHandler versions
Browse files Browse the repository at this point in the history
  • Loading branch information
4Benj authored and Birdulon committed Aug 24, 2022
1 parent c096d25 commit e8e3fcb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,11 @@ private static void queryCurrentRegion(Request request, Response response) {
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();

Expand Down

0 comments on commit e8e3fcb

Please sign in to comment.