Made advanced tooltips only show with advanced tooltips enabled

You can shut up now raoul
This commit is contained in:
Ellpeck 2016-11-29 22:34:46 +01:00
parent 95d2fa45ec
commit d70b37b528

View file

@ -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")+":");