diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-03-27 20:02:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 20:02:42 +0100 |
commit | 33a50f43576779dc9aa92e2fba066751d2b38e64 (patch) | |
tree | 2cbf00c1e1a1ea09f2afedd25d09188a710f568a /src/main | |
parent | cc1043824b98deedb5c06ed22403036fba8dec4e (diff) | |
download | NotEnoughUpdates-33a50f43576779dc9aa92e2fba066751d2b38e64.tar.gz NotEnoughUpdates-33a50f43576779dc9aa92e2fba066751d2b38e64.tar.bz2 NotEnoughUpdates-33a50f43576779dc9aa92e2fba066751d2b38e64.zip |
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
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/ItemUtils.java | 2 |
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); |