aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorLulonaut <67191924+Lulonaut@users.noreply.github.com>2022-04-21 12:49:42 +0200
committerGitHub <noreply@github.com>2022-04-21 12:49:42 +0200
commit80cde86d9d1f357b964f5cdad3b8b71bc2ba6d33 (patch)
tree751253a82c8d51daec63e5391e5a4eed19b37142 /src/main
parent2692193e54e4dd6c0117dcdb85368dc83bb04f1a (diff)
downloadNotEnoughUpdates-80cde86d9d1f357b964f5cdad3b8b71bc2ba6d33.tar.gz
NotEnoughUpdates-80cde86d9d1f357b964f5cdad3b8b71bc2ba6d33.tar.bz2
NotEnoughUpdates-80cde86d9d1f357b964f5cdad3b8b71bc2ba6d33.zip
fix expand pet exp (#114)
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipListener.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipListener.java b/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipListener.java
index cc2b11e8..501ed8a3 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipListener.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/listener/ItemTooltipListener.java
@@ -81,9 +81,9 @@ public class ItemTooltipListener {
String internalname = NotEnoughUpdates.INSTANCE.manager.getInternalNameForItem(event.itemStack);
if (internalname == null) {
- onItemToolTipInternalNameNull(event);
return;
}
+ petToolTipXPExtendPetMenu(event);
boolean hasEnchantments = event.itemStack.getTagCompound().getCompoundTag("ExtraAttributes").hasKey(
"enchantments",
@@ -741,10 +741,6 @@ public class ItemTooltipListener {
}
}
- private void onItemToolTipInternalNameNull(ItemTooltipEvent event) {
- petToolTipXPExtendPetMenu(event);
- }
-
private List<String> petToolTipXPExtend(ItemTooltipEvent event) {
List<String> tooltipText = new ArrayList<>();
if (NotEnoughUpdates.INSTANCE.config.tooltipTweaks.petExtendExp) {
@@ -929,7 +925,9 @@ public class ItemTooltipListener {
} else if (NotEnoughUpdates.INSTANCE.packDevEnabled) {
event.toolTip.add("");
event.toolTip.add(EnumChatFormatting.AQUA + "NEU Pack Dev Info:");
- event.toolTip.add(EnumChatFormatting.GRAY + "Press " + EnumChatFormatting.GOLD + "[KEY]" + EnumChatFormatting.GRAY + " to copy line");
+ event.toolTip.add(
+ EnumChatFormatting.GRAY + "Press " + EnumChatFormatting.GOLD + "[KEY]" + EnumChatFormatting.GRAY +
+ " to copy line");
String internal = NotEnoughUpdates.INSTANCE.manager.getInternalNameForItem(event.itemStack);