Commit e8e3fcbc authored by Benj's avatar Benj Committed by Luke H-W
Browse files

Fix RegionHandler versions

parent c096d255
...@@ -140,7 +140,11 @@ public final class RegionHandler implements Router { ...@@ -140,7 +140,11 @@ public final class RegionHandler implements Router {
regionData = region.getBase64(); 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 { try {
QueryCurrentRegionEvent event = new QueryCurrentRegionEvent(regionData); event.call(); QueryCurrentRegionEvent event = new QueryCurrentRegionEvent(regionData); event.call();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment