Skip to content

Commit

Permalink
Show "Transmutable" tooltip only on transmutation terminals
Browse files Browse the repository at this point in the history
  • Loading branch information
62832 committed May 8, 2024
1 parent 3d05fb3 commit c0916bb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<C extends MEStorageMenu> extends AEBaseScreen<C> {
Expand All @@ -45,7 +46,9 @@ private void addTransmutable(
int y,
CallbackInfo ci,
List<Component> 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));
}
Expand Down

0 comments on commit c0916bb

Please sign in to comment.