fix: bad ConfigProvider logic

feat/data-edit-commands
William 1 year ago
parent df0bd7a7cb
commit 350a8b864d
No known key found for this signature in database

@ -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;
} }

Loading…
Cancel
Save