Don't check for spaces in file version string.
This commit is contained in:
@@ -401,8 +401,8 @@ public class Updater {
|
||||
private boolean versionCheck(String title) {
|
||||
if (type != Updater.UpdateType.NO_VERSION_CHECK) {
|
||||
String version = plugin.getDescription().getVersion();
|
||||
if (title.split(" v").length == 2) {
|
||||
String remoteVersion = title.split(" v")[1].split(" ")[0]; // Get the newest file's version number
|
||||
if (title.split("v").length == 2) {
|
||||
String remoteVersion = title.split("v")[1].split(" ")[0]; // Get the newest file's version number
|
||||
int remVer = -1, curVer = 0;
|
||||
try {
|
||||
remVer = calVer(remoteVersion);
|
||||
|
||||
Reference in New Issue
Block a user