Make logger private

This commit is contained in:
DBotThePony 2022-09-22 19:28:31 +07:00
parent e6caaf68ec
commit 8833b6f705
Signed by: DBot
GPG Key ID: DCC23B5715498507
2 changed files with 7 additions and 2 deletions

View File

@ -50,7 +50,7 @@ import javax.annotation.ParametersAreNonnullByDefault;
public final class OverdriveThatMatters {
// Directly reference a log4j logger.
public static final String MOD_ID = "overdrive_that_matters";
public static final Logger LOGGER = LogManager.getLogger();
private static final Logger LOGGER = LogManager.getLogger();
public static OverdriveThatMatters INSTANCE;
private StorageStackType<ItemStackWrapper> ITEM_STORAGE;

View File

@ -7,6 +7,7 @@ import net.minecraft.world.entity.player.Player
import net.minecraft.world.inventory.Slot
import net.minecraftforge.network.NetworkEvent
import net.minecraftforge.network.PacketDistributor
import org.apache.logging.log4j.LogManager
import ru.dbotthepony.mc.otm.OverdriveThatMatters
import ru.dbotthepony.mc.otm.block.entity.matter.MatterPanelBlockEntity
import ru.dbotthepony.mc.otm.capability.matter.*
@ -217,7 +218,7 @@ class MatterPanelMenu @JvmOverloads constructor(
val state = graph.getPattern(id)
if (state == null) {
OverdriveThatMatters.LOGGER.error("Received replication request from {} of {}, but it is not found in grid", ply, id)
LOGGER.error("Received replication request from {} of {}, but it is not found in grid", ply, id)
return
}
@ -295,4 +296,8 @@ class MatterPanelMenu @JvmOverloads constructor(
override val storageSlots: Collection<Slot>
get() = emptyList()
companion object {
private val LOGGER = LogManager.getLogger()
}
}