aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLulonaut <67191924+Lulonaut@users.noreply.github.com>2021-09-26 21:06:37 +0200
committerGitHub <noreply@github.com>2021-09-26 21:06:37 +0200
commit60a33198da29aee56237853563860ff0320c6231 (patch)
tree752b652077efb42b0fec5772ee33a8c05e8e75b9 /src
parentfc71a87b8d5a04e9252fede85cacb1de4ac92612 (diff)
downloadNotEnoughUpdates-60a33198da29aee56237853563860ff0320c6231.tar.gz
NotEnoughUpdates-60a33198da29aee56237853563860ff0320c6231.tar.bz2
NotEnoughUpdates-60a33198da29aee56237853563860ff0320c6231.zip
Set still requires iterator
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/overlays/AuctionSearchOverlay.java6
1 files 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);