mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-06 00:49:09 +01:00
made advanced tooltips only show with advanced tooltips enabled
This commit is contained in:
parent
d8af7636ee
commit
daf51f7929
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