Skip to content

Commit

Permalink
Fix: Use SLogger#setup for defence registration
Browse files Browse the repository at this point in the history
  • Loading branch information
Skullians committed Dec 23, 2024
1 parent 06dbee8 commit b98bbb9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public void register(File directory, String locale) {
for (File defenceFile : Objects.requireNonNull(dir.listFiles())) {
String fullPathName = defenceFile.getName();
String defenceName = fullPathName.substring(0, fullPathName.length() - 4);
SLogger.info("Registering Defence: <#05eb2f>{}<#4294ed>", defenceName);
SLogger.setup("Registering Defence: <#05eb2f>{}<#4294ed>", false, defenceName);

YamlDocument config = YamlDocument.create(defenceFile, GeneralSettings.DEFAULT, LoaderSettings.builder().setAutoUpdate(true).build(),
DumperSettings.DEFAULT, UpdaterSettings.builder().setVersioning(new BasicVersioning("CONFIG_VERSION")).build());
Expand Down

0 comments on commit b98bbb9

Please sign in to comment.