Optimize imports and use the class's name for the logger.

This commit is contained in:
Username404-59 2021-04-09 15:24:19 +02:00
parent 61abfc3dc0
commit de806a742c
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
2 changed files with 1 additions and 2 deletions

View File

@ -6,7 +6,7 @@ import org.apache.logging.log4j.Logger
abstract class Snowy { abstract class Snowy {
companion object { companion object {
@JvmStatic @JvmStatic
val logs: Logger = LogManager.getLogger("Snowy") val logs: Logger = LogManager.getLogger()
} }
fun atInit() { fun atInit() {
logs.info("Init point of SnowyGUI hit.") logs.info("Init point of SnowyGUI hit.")

View File

@ -6,7 +6,6 @@ import net.minecraftforge.fml.ExtensionPoint
import net.minecraftforge.fml.ModLoadingContext import net.minecraftforge.fml.ModLoadingContext
import net.minecraftforge.fml.common.Mod import net.minecraftforge.fml.common.Mod
import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent
import net.minecraftforge.fml.event.lifecycle.FMLCommonSetupEvent
import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext
import java.util.function.BiFunction import java.util.function.BiFunction
import java.util.function.Supplier import java.util.function.Supplier