From 6b9e7e79e0ae178d25bce119507d16bf3c37096c Mon Sep 17 00:00:00 2001 From: isXander Date: Sat, 12 Nov 2022 13:28:44 +0000 Subject: little changes --- src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java | 6 +++--- src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java | 4 ++-- src/main/java/dev/isxander/yacl/impl/utils/YACLConstants.java | 8 ++++++++ src/main/java/dev/isxander/yacl/impl/utils/YaclConstants.java | 8 -------- 4 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 src/main/java/dev/isxander/yacl/impl/utils/YACLConstants.java delete mode 100644 src/main/java/dev/isxander/yacl/impl/utils/YaclConstants.java (limited to 'src/main/java') diff --git a/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java b/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java index 732492d..0f9311a 100644 --- a/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java +++ b/src/main/java/dev/isxander/yacl/config/GsonConfigInstance.java @@ -1,7 +1,7 @@ package dev.isxander.yacl.config; import com.google.gson.*; -import dev.isxander.yacl.impl.utils.YaclConstants; +import dev.isxander.yacl.impl.utils.YACLConstants; import net.minecraft.text.Style; import net.minecraft.text.Text; @@ -42,7 +42,7 @@ public class GsonConfigInstance extends ConfigInstance { @Override public void save() { try { - YaclConstants.LOGGER.info("Saving {}...", getConfigClass().getSimpleName()); + YACLConstants.LOGGER.info("Saving {}...", getConfigClass().getSimpleName()); Files.writeString(path, gson.toJson(getConfig()), StandardOpenOption.TRUNCATE_EXISTING, StandardOpenOption.CREATE); } catch (IOException e) { e.printStackTrace(); @@ -57,7 +57,7 @@ public class GsonConfigInstance extends ConfigInstance { return; } - YaclConstants.LOGGER.info("Loading {}...", getConfigClass().getSimpleName()); + YACLConstants.LOGGER.info("Loading {}...", getConfigClass().getSimpleName()); setConfig(gson.fromJson(Files.readString(path), getConfigClass())); } catch (IOException e) { e.printStackTrace(); diff --git a/src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java b/src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java index 38112f4..eb23eac 100644 --- a/src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java +++ b/src/main/java/dev/isxander/yacl/impl/YetAnotherConfigLibImpl.java @@ -4,7 +4,7 @@ import com.google.common.collect.ImmutableList; import dev.isxander.yacl.api.ConfigCategory; import dev.isxander.yacl.api.YetAnotherConfigLib; import dev.isxander.yacl.gui.YACLScreen; -import dev.isxander.yacl.impl.utils.YaclConstants; +import dev.isxander.yacl.impl.utils.YACLConstants; import net.minecraft.client.gui.screen.Screen; import net.minecraft.text.Text; @@ -13,7 +13,7 @@ import java.util.function.Consumer; public record YetAnotherConfigLibImpl(Text title, ImmutableList categories, Runnable saveFunction, Consumer initConsumer) implements YetAnotherConfigLib { @Override public Screen generateScreen(Screen parent) { - YaclConstants.LOGGER.info("Generating YACL screen"); + YACLConstants.LOGGER.info("Generating YACL screen"); return new YACLScreen(this, parent); } } diff --git a/src/main/java/dev/isxander/yacl/impl/utils/YACLConstants.java b/src/main/java/dev/isxander/yacl/impl/utils/YACLConstants.java new file mode 100644 index 0000000..3d382d4 --- /dev/null +++ b/src/main/java/dev/isxander/yacl/impl/utils/YACLConstants.java @@ -0,0 +1,8 @@ +package dev.isxander.yacl.impl.utils; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +public class YACLConstants { + public static final Logger LOGGER = LoggerFactory.getLogger("YetAnotherConfigLib"); +} diff --git a/src/main/java/dev/isxander/yacl/impl/utils/YaclConstants.java b/src/main/java/dev/isxander/yacl/impl/utils/YaclConstants.java deleted file mode 100644 index aadeb18..0000000 --- a/src/main/java/dev/isxander/yacl/impl/utils/YaclConstants.java +++ /dev/null @@ -1,8 +0,0 @@ -package dev.isxander.yacl.impl.utils; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - -public class YaclConstants { - public static final Logger LOGGER = LoggerFactory.getLogger("YetAnotherConfigLib"); -} -- cgit