Fix Windows path loading bug

This commit is contained in:
Michaili K
2021-09-16 20:30:17 +02:00
parent d5bb16d143
commit ddf95da19f
3 changed files with 6 additions and 6 deletions

View File

@@ -67,7 +67,7 @@ public class BotConfig
if(path.toFile().exists())
{
if(System.getProperty("config.file") == null)
System.setProperty("config.file", System.getProperty("config", "config.txt"));
System.setProperty("config.file", System.getProperty("config", path.toAbsolutePath().toString()));
ConfigFactory.invalidateCaches();
}