mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 05:06:45 +01:00
Fixed regex of version string parsing
This commit is contained in:
parent
bfbd50d8f4
commit
f1b82dcbe6
@ -398,8 +398,8 @@ public class Updater {
|
||||
String[] oldTokens = version.split("-");
|
||||
String[] newTokens = title.split("-");
|
||||
|
||||
int oldVersion = Integer.parseInt(oldTokens[0].replaceAll(".", ""));
|
||||
int newVersion = Integer.parseInt(newTokens[0].replaceAll(".", ""));
|
||||
int oldVersion = Integer.parseInt(oldTokens[0].replaceAll("[.]", ""));
|
||||
int newVersion = Integer.parseInt(newTokens[0].replaceAll("[.]", ""));
|
||||
|
||||
// Check versions
|
||||
if (oldVersion < newVersion) {
|
||||
|
Loading…
Reference in New Issue
Block a user