From 33a50f43576779dc9aa92e2fba066751d2b38e64 Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Wed, 27 Mar 2024 20:02:42 +0100 Subject: Fix "Right-click to add this pet to" not always being removed (#1066) Fix: "Right-click to add this pet to" not always being removed --- src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit