From 60a33198da29aee56237853563860ff0320c6231 Mon Sep 17 00:00:00 2001 From: Lulonaut <67191924+Lulonaut@users.noreply.github.com> Date: Sun, 26 Sep 2021 21:06:37 +0200 Subject: Set still requires iterator --- .../moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java index dc31c686..ca7abc01 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java @@ -336,10 +336,10 @@ public class AuctionSearchOverlay { close(); } else if(Keyboard.getEventKey() == Keyboard.KEY_TAB) { if (!autocompletedItems.isEmpty()) { - searchString = autocompletedItems.get(0); + searchString = autocompletedItems.iterator().next(); JsonObject repoObject = NotEnoughUpdates.INSTANCE.manager.getItemInformation().get(autocompletedItems.iterator().next()); - String displayName = repoObject.get("displayname").getAsString(); - if (displayName.contains("Enchanted Book")){ + String displayname = repoObject.get("displayname").getAsString(); + if (displayname.contains("Enchanted Book")){ String lore = repoObject.get("lore").getAsJsonArray().get(0).getAsString(); String name = lore.substring(0, lore.lastIndexOf(" ")); searchString = Utils.cleanColour(name); -- cgit