Skip to content

Commit 3faf81d

Browse files
committed
fix small issue with qchest
1 parent d5722de commit 3faf81d

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

src/main/java/gregtech/common/metatileentities/storage/MetaTileEntityQuantumChest.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
import codechicken.lib.render.pipeline.ColourMultiplier;
4242
import codechicken.lib.render.pipeline.IVertexOperation;
4343
import codechicken.lib.vec.Matrix4;
44-
import com.cleanroommc.modularui.api.drawable.IKey;
4544
import com.cleanroommc.modularui.network.NetworkUtils;
4645
import com.cleanroommc.modularui.screen.ModularPanel;
4746
import com.cleanroommc.modularui.value.sync.PanelSyncManager;
@@ -314,11 +313,14 @@ public void writeItemStackData(NBTTagCompound itemStack) {
314313
@Override
315314
protected void createWidgets(ModularPanel mainPanel, PanelSyncManager syncManager) {
316315
mainPanel.child(createQuantumDisplay("gregtech.machine.quantum_chest.items_stored",
317-
() -> IKey.lang(virtualItemStack.getTranslationKey()).get(),
316+
() -> virtualItemStack.getDisplayName(),
318317
textWidget -> !virtualItemStack.isEmpty(),
319318
() -> TextFormattingUtil.formatNumbers(itemsStoredInside)))
319+
// todo make and use GT item slot for special behavior
320320
.child(new ItemSlot()
321-
.slot(new ModularSlot(itemInventory, 0, true))
321+
// todo disable tooltip
322+
.slot(new ModularSlot(itemInventory, 0)
323+
.accessibility(false, false))
322324
.pos(148, 41));
323325
}
324326

0 commit comments

Comments
 (0)