Skip to content

Commit

Permalink
Fix tooltips (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mithi83 authored Jul 25, 2024
1 parent 0886dd5 commit a31a7a8
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,15 @@
*/
@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) {
registration.addTooltipCollectedCallback((box, accessor) -> {
var target = accessor.getTarget();

if (target instanceof InterfaceLogicHost || target instanceof PatternProviderLogicHost) {
for (var loc : CHEMICALS) {
box.getTooltip().remove(loc);
}
box.getTooltip().remove(CHEMICALS);
}
});
}
Expand Down

0 comments on commit a31a7a8

Please sign in to comment.