From 75a06d0cc35f8017febf354b61e9e4bd0f5e805e Mon Sep 17 00:00:00 2001 From: Andrei Laiff Date: Tue, 17 Oct 2023 18:36:12 +0300 Subject: [PATCH] Fix add logging around empty configuration --- .../glodblock/github/client/gui/GuiLevelMaintainer.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/com/glodblock/github/client/gui/GuiLevelMaintainer.java b/src/main/java/com/glodblock/github/client/gui/GuiLevelMaintainer.java index 7f3ec8965..a6482bac4 100644 --- a/src/main/java/com/glodblock/github/client/gui/GuiLevelMaintainer.java +++ b/src/main/java/com/glodblock/github/client/gui/GuiLevelMaintainer.java @@ -47,6 +47,9 @@ import appeng.client.gui.widgets.GuiTabButton; import appeng.container.AEBaseContainer; import appeng.container.slot.SlotFake; +import appeng.core.AEConfig; +import appeng.core.AELog; +import appeng.core.features.AEFeature; import appeng.core.sync.network.NetworkHandler; import appeng.core.sync.packets.PacketNEIDragClick; import codechicken.nei.VisiblityData; @@ -130,6 +133,12 @@ public void postUpdate(List list) { } for (IAEItemStack is : list) { NBTTagCompound data = is.getItemStack().getTagCompound(); + if (data == null) { + if (AEConfig.instance.isFeatureEnabled(AEFeature.PacketLogging)) { + AELog.info("Received empty configuration: ", is); + } + continue; + } long batch = data.getLong(TLMTags.Batch.tagName); long quantity = data.getLong(TLMTags.Quantity.tagName); int idx = data.getInteger(TLMTags.Index.tagName);