aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
index 25732459..3d7f6d40 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java
@@ -305,7 +305,7 @@ public class ItemUtils {
}
for (int i = 0; i < newLore.size(); i++) {
String cleaned = Utils.cleanColour(newLore.get(i));
- if (cleaned.equals("Right-click to add this pet to")) {
+ if (cleaned.startsWith("Right-click to add this pet to")) {
if (heldItem == null) newLore.remove(i + 2);
newLore.remove(i + 1);
newLore.remove(i);