From a31a7a821523752cab8d4b3f170339a147db9906 Mon Sep 17 00:00:00 2001 From: Mithi83 <28407460+Mithi83@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:06:29 +0200 Subject: [PATCH] Fix tooltips (#63) --- .../mekae2/integration/jade/AMJadePlugin.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/me/ramidzkh/mekae2/integration/jade/AMJadePlugin.java b/src/main/java/me/ramidzkh/mekae2/integration/jade/AMJadePlugin.java index cd987f3..1b4b17d 100644 --- a/src/main/java/me/ramidzkh/mekae2/integration/jade/AMJadePlugin.java +++ b/src/main/java/me/ramidzkh/mekae2/integration/jade/AMJadePlugin.java @@ -14,12 +14,7 @@ */ @WailaPlugin public class AMJadePlugin implements IWailaPlugin { - private static final ResourceLocation[] CHEMICALS = { - ResourceLocation.fromNamespaceAndPath("mekanism", "gas"), - ResourceLocation.fromNamespaceAndPath("mekanism", "infuse_type"), - ResourceLocation.fromNamespaceAndPath("mekanism", "pigment"), - ResourceLocation.fromNamespaceAndPath("mekanism", "slurry"), - }; + private static final ResourceLocation CHEMICALS = ResourceLocation.fromNamespaceAndPath("mekanism", "chemical"); @Override public void registerClient(IWailaClientRegistration registration) { @@ -27,9 +22,7 @@ public void registerClient(IWailaClientRegistration registration) { var target = accessor.getTarget(); if (target instanceof InterfaceLogicHost || target instanceof PatternProviderLogicHost) { - for (var loc : CHEMICALS) { - box.getTooltip().remove(loc); - } + box.getTooltip().remove(CHEMICALS); } }); }