Skip to content

Commit

Permalink
fix(splashscreen): Fix version file content
Browse files Browse the repository at this point in the history
  • Loading branch information
TobseF committed Aug 13, 2023
1 parent 88b285f commit 3a53d5c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/lib/mylib/version/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
package lib.mylib.version;

import org.newdawn.slick.util.Log;
import org.newdawn.slick.util.ResourceLoader;

import java.util.NoSuchElementException;
Expand Down Expand Up @@ -38,12 +39,12 @@ private Version() {
*/
public static String getVersion() {
if (version == null) {
Scanner scanner = getScanner().useDelimiter("=");
Scanner scanner = getScanner();
if (scanner != null) {
try {
scanner.next();
version = scanner.next().trim();
} catch (NoSuchElementException e) {
Log.warn("Failed loading version file");
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/versionfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=v3.6.0
v3.6.0

0 comments on commit 3a53d5c

Please # to comment.