Add current + new version to update notification

And fix a little typo alongside bumping versioning to v5
This commit is contained in:
NotMyFault
2020-02-16 14:37:07 +01:00
parent 7b83f0146e
commit 6953187cac
5 changed files with 11 additions and 12 deletions

View File

@ -34,18 +34,14 @@ public class PlotVersion {
if (hash == 0 && build == 0) {
return "NoVer-SNAPSHOT";
} else {
return "4." + build;
return "5." + build;
}
}
@Override public String toString() {
if (hash == 0 && build == 0) {
return "PlotSquared-NoVer-SNAPSHOT";
} else {
return "PlotSquared-4." + build;
return "PlotSquared-5." + build;
}
}
public boolean isNewer(PlotVersion other) {
return other.build < this.build;
}
}

View File

@ -67,7 +67,7 @@ public class MainUtil {
public static boolean canSendChunk = false;
/**
* Cache of mapping x,y,z coordinates to the chunk array<br>
* - Used for efficent world generation<br>
* - Used for efficient world generation<br>
*/
public static short[][] x_loc;
public static short[][] y_loc;