mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-08 00:23:38 +02:00
made advanced tooltips only show with advanced tooltips enabled
This commit is contained in:
parent
d8af7636ee
commit
daf51f7929
|
@ -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")+":");
|
||||
|
|
Loading…
Reference in a new issue