mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Made advanced tooltips only show with advanced tooltips enabled
You can shut up now raoul
This commit is contained in:
parent
95d2fa45ec
commit
d70b37b528
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ public class ClientEvents{
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public void onTooltipEvent(ItemTooltipEvent event){
|
public void onTooltipEvent(ItemTooltipEvent event){
|
||||||
//Advanced Item Info
|
//Advanced Item Info
|
||||||
if(StackUtil.isValid(event.getItemStack())){
|
if(event.isShowAdvancedItemTooltips() && StackUtil.isValid(event.getItemStack())){
|
||||||
if(ConfigBoolValues.CTRL_EXTRA_INFO.isEnabled()){
|
if(ConfigBoolValues.CTRL_EXTRA_INFO.isEnabled()){
|
||||||
if(GuiScreen.isCtrlKeyDown()){
|
if(GuiScreen.isCtrlKeyDown()){
|
||||||
event.getToolTip().add(TextFormatting.DARK_GRAY+""+TextFormatting.ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".extraInfo.desc")+":");
|
event.getToolTip().add(TextFormatting.DARK_GRAY+""+TextFormatting.ITALIC+StringUtil.localize("tooltip."+ModUtil.MOD_ID+".extraInfo.desc")+":");
|
||||||
|
|
Loading…
Reference in a new issue