From c0916bb3ed3c64db638fcbab4b2b11e059374760 Mon Sep 17 00:00:00 2001 From: 90 Date: Wed, 8 May 2024 20:22:14 +0100 Subject: [PATCH] Show "Transmutable" tooltip only on transmutation terminals --- .../_90/appliede/mixin/tooltip/MEStorageScreenMixin.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/gripe/_90/appliede/mixin/tooltip/MEStorageScreenMixin.java b/src/main/java/gripe/_90/appliede/mixin/tooltip/MEStorageScreenMixin.java index bfd60e7..37bfee2 100644 --- a/src/main/java/gripe/_90/appliede/mixin/tooltip/MEStorageScreenMixin.java +++ b/src/main/java/gripe/_90/appliede/mixin/tooltip/MEStorageScreenMixin.java @@ -21,6 +21,7 @@ import gripe._90.appliede.AppliedE; import gripe._90.appliede.me.reporting.GridInventoryEMCEntry; +import gripe._90.appliede.menu.TransmutationTerminalMenu; @Mixin(MEStorageScreen.class) public abstract class MEStorageScreenMixin extends AEBaseScreen { @@ -45,7 +46,9 @@ private void addTransmutable( int y, CallbackInfo ci, List currentTooltip) { - if (((GridInventoryEMCEntry) entry).appliede$isTransmutable() && entry.getStoredAmount() == 0) { + if (menu instanceof TransmutationTerminalMenu + && ((GridInventoryEMCEntry) entry).appliede$isTransmutable() + && entry.getStoredAmount() == 0) { currentTooltip.add(Component.translatable("tooltip." + AppliedE.MODID + ".transmutable") .withStyle(ChatFormatting.DARK_GRAY)); }