mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56: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[] oldTokens = version.split("-");
|
||||||
String[] newTokens = title.split("-");
|
String[] newTokens = title.split("-");
|
||||||
|
|
||||||
int oldVersion = Integer.parseInt(oldTokens[0].replaceAll(".", ""));
|
int oldVersion = Integer.parseInt(oldTokens[0].replaceAll("[.]", ""));
|
||||||
int newVersion = Integer.parseInt(newTokens[0].replaceAll(".", ""));
|
int newVersion = Integer.parseInt(newTokens[0].replaceAll("[.]", ""));
|
||||||
|
|
||||||
// Check versions
|
// Check versions
|
||||||
if (oldVersion < newVersion) {
|
if (oldVersion < newVersion) {
|
||||||
|
Loading…
Reference in New Issue
Block a user