From daf51f79299987aabcfb702acc5c480ab6005868 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 1 Dec 2016 18:24:43 +0100 Subject: [PATCH] made advanced tooltips only show with advanced tooltips enabled --- .../de/ellpeck/actuallyadditions/mod/event/ClientEvents.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java b/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java index 813bcdca1..94010a7eb 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/event/ClientEvents.java @@ -55,7 +55,7 @@ public class ClientEvents{ @SubscribeEvent public void onTooltipEvent(ItemTooltipEvent event){ //Advanced Item Info - if(StackUtil.isValid(event.getItemStack())){ + if(event.isShowAdvancedItemTooltips() && StackUtil.isValid(event.getItemStack())){ if(ConfigBoolValues.CTRL_EXTRA_INFO.isEnabled()){ if(GuiScreen.isCtrlKeyDown()){ event.getToolTip().add(TextFormatting.DARK_GRAY+""+TextFormatting.ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".extraInfo.desc")+":");