mirror of
https://github.com/WiIIiam278/HuskSync.git
synced 2025-12-23 16:49:19 +00:00
fix: bad ConfigProvider logic
This commit is contained in:
@@ -71,6 +71,7 @@ import space.arim.morepaperlib.scheduling.AsynchronousScheduler;
|
|||||||
import space.arim.morepaperlib.scheduling.GracefulScheduling;
|
import space.arim.morepaperlib.scheduling.GracefulScheduling;
|
||||||
import space.arim.morepaperlib.scheduling.RegionalScheduler;
|
import space.arim.morepaperlib.scheduling.RegionalScheduler;
|
||||||
|
|
||||||
|
import javax.naming.ConfigurationException;
|
||||||
import java.nio.file.Path;
|
import java.nio.file.Path;
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.logging.Level;
|
import java.util.logging.Level;
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ public interface ConfigProvider {
|
|||||||
);
|
);
|
||||||
// Read existing locales if present
|
// Read existing locales if present
|
||||||
final Path path = getConfigDirectory().resolve(String.format("messages-%s.yml", getSettings().getLanguage()));
|
final Path path = getConfigDirectory().resolve(String.format("messages-%s.yml", getSettings().getLanguage()));
|
||||||
if (!Files.exists(path)) {
|
if (Files.exists(path)) {
|
||||||
setLocales(store.load(path));
|
setLocales(store.load(path));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user