Make logger private
This commit is contained in:
parent
e6caaf68ec
commit
8833b6f705
@ -50,7 +50,7 @@ import javax.annotation.ParametersAreNonnullByDefault;
|
|||||||
public final class OverdriveThatMatters {
|
public final class OverdriveThatMatters {
|
||||||
// Directly reference a log4j logger.
|
// Directly reference a log4j logger.
|
||||||
public static final String MOD_ID = "overdrive_that_matters";
|
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;
|
public static OverdriveThatMatters INSTANCE;
|
||||||
private StorageStackType<ItemStackWrapper> ITEM_STORAGE;
|
private StorageStackType<ItemStackWrapper> ITEM_STORAGE;
|
||||||
|
@ -7,6 +7,7 @@ import net.minecraft.world.entity.player.Player
|
|||||||
import net.minecraft.world.inventory.Slot
|
import net.minecraft.world.inventory.Slot
|
||||||
import net.minecraftforge.network.NetworkEvent
|
import net.minecraftforge.network.NetworkEvent
|
||||||
import net.minecraftforge.network.PacketDistributor
|
import net.minecraftforge.network.PacketDistributor
|
||||||
|
import org.apache.logging.log4j.LogManager
|
||||||
import ru.dbotthepony.mc.otm.OverdriveThatMatters
|
import ru.dbotthepony.mc.otm.OverdriveThatMatters
|
||||||
import ru.dbotthepony.mc.otm.block.entity.matter.MatterPanelBlockEntity
|
import ru.dbotthepony.mc.otm.block.entity.matter.MatterPanelBlockEntity
|
||||||
import ru.dbotthepony.mc.otm.capability.matter.*
|
import ru.dbotthepony.mc.otm.capability.matter.*
|
||||||
@ -217,7 +218,7 @@ class MatterPanelMenu @JvmOverloads constructor(
|
|||||||
val state = graph.getPattern(id)
|
val state = graph.getPattern(id)
|
||||||
|
|
||||||
if (state == null) {
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -295,4 +296,8 @@ class MatterPanelMenu @JvmOverloads constructor(
|
|||||||
|
|
||||||
override val storageSlots: Collection<Slot>
|
override val storageSlots: Collection<Slot>
|
||||||
get() = emptyList()
|
get() = emptyList()
|
||||||
|
|
||||||
|
companion object {
|
||||||
|
private val LOGGER = LogManager.getLogger()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user