From de806a742cb5fa8d17528a02e39484059e84b913 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Fri, 9 Apr 2021 15:24:19 +0200 Subject: [PATCH] Optimize imports and use the class's name for the logger. --- common/src/main/kotlin/fr/username404/snowygui/Snowy.kt | 2 +- .../src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/common/src/main/kotlin/fr/username404/snowygui/Snowy.kt b/common/src/main/kotlin/fr/username404/snowygui/Snowy.kt index 96f16c3..f2c47e9 100644 --- a/common/src/main/kotlin/fr/username404/snowygui/Snowy.kt +++ b/common/src/main/kotlin/fr/username404/snowygui/Snowy.kt @@ -6,7 +6,7 @@ import org.apache.logging.log4j.Logger abstract class Snowy { companion object { @JvmStatic - val logs: Logger = LogManager.getLogger("Snowy") + val logs: Logger = LogManager.getLogger() } fun atInit() { logs.info("Init point of SnowyGUI hit.") diff --git a/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt b/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt index c3e8181..d234f18 100644 --- a/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt +++ b/forge/src/main/kotlin/fr/username404/snowygui/forge/forgeInit.kt @@ -6,7 +6,6 @@ import net.minecraftforge.fml.ExtensionPoint import net.minecraftforge.fml.ModLoadingContext import net.minecraftforge.fml.common.Mod import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent -import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext import java.util.function.BiFunction import java.util.function.Supplier