fix loading Fawe.properties

This commit is contained in:
dordsor21 2020-12-31 17:45:07 +00:00
parent 59c227b49a
commit 82f640d132
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -235,7 +235,7 @@ public class Fawe {
// Setting up config.yml
File file = new File(this.implementation.getDirectory(), "config.yml");
Settings.IMP.PLATFORM = implementation.getPlatform().replace("\"", "");
try (InputStream stream = getClass().getResourceAsStream(File.separator + "fawe.properties");
try (InputStream stream = getClass().getResourceAsStream("/fawe.properties");
BufferedReader br = new BufferedReader(new InputStreamReader(stream))) {
String versionString = br.readLine();
String commitString = br.readLine();