Skip to content

Commit e393db3

Browse files
committed
Release 1.5.0
1 parent be6f867 commit e393db3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.xxmicloxx</groupId>
77
<artifactId>NoteBlockAPI</artifactId>
8-
<version>1.5.0-SNAPSHOT</version>
8+
<version>1.5.0</version>
99
<name>NoteBlockAPI</name>
1010

1111
<properties>

src/main/java/com/xxmicloxx/NoteBlockAPI/utils/Updater.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ public static boolean checkUpdate(String resource, String actualVersion) throws
2121
URLConnection con = new URL("https://api.spigotmc.org/legacy/update.php?resource=" + resource).openConnection();
2222
String newVersionString = new BufferedReader(new InputStreamReader(con.getInputStream())).readLine();
2323
int first = newVersionString.indexOf("(");
24-
String newVersion = newVersionString.substring(0, first);
25-
24+
String newVersion = first == -1 ? newVersionString : newVersionString.substring(0, first);
25+
2626
Float newVer = getVersionNumber(newVersion);
2727

2828
return snapshot ? newVer >= version : newVer > version;

0 commit comments

Comments
 (0)