Don't check for spaces in file version string.

This commit is contained in:
drtshock
2013-10-11 11:22:36 -05:00
parent ca155443e8
commit 7f75d9f625
2 changed files with 7 additions and 5 deletions
@@ -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);