From b7a4dc207d8e9a8d73db5b36858d92e62e340030 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Thu, 13 Jun 2024 13:53:55 +0200 Subject: [PATCH] use absolute resources --- .../src/main/java/de/com/baseband/client/util/data/GitHash.java | 2 +- Loader/src/main/java/de/com/baseband/launcher/util/GitHash.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/src/main/java/de/com/baseband/client/util/data/GitHash.java b/Client/src/main/java/de/com/baseband/client/util/data/GitHash.java index 76eae4d..86f6206 100644 --- a/Client/src/main/java/de/com/baseband/client/util/data/GitHash.java +++ b/Client/src/main/java/de/com/baseband/client/util/data/GitHash.java @@ -9,7 +9,7 @@ public class GitHash { public static final String GIT_HASH; static { - InputStream stream = GitHash.class.getResourceAsStream("commit"); + InputStream stream = GitHash.class.getResourceAsStream("/commit"); if(stream != null) { try { GIT_HASH = new StreamReader(stream).readAllAsString().trim(); diff --git a/Loader/src/main/java/de/com/baseband/launcher/util/GitHash.java b/Loader/src/main/java/de/com/baseband/launcher/util/GitHash.java index 2472348..0c6876f 100644 --- a/Loader/src/main/java/de/com/baseband/launcher/util/GitHash.java +++ b/Loader/src/main/java/de/com/baseband/launcher/util/GitHash.java @@ -9,7 +9,7 @@ public class GitHash { public static final String GIT_HASH; static { - InputStream stream = GitHash.class.getResourceAsStream("commit"); + InputStream stream = GitHash.class.getResourceAsStream("/commit"); if(stream != null) { try { GIT_HASH = new StreamReader(stream).readAllAsString().trim();