From f419cb933d4d7b85675386d1e806f57b1406879c Mon Sep 17 00:00:00 2001 From: Mithi83 <28407460+Mithi83@users.noreply.github.com> Date: Thu, 25 Jul 2024 09:55:13 +0200 Subject: [PATCH] Fix tooltips --- .../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); } }); }