From e74faa9cdffbf2c5f7d5755a08711ef43d2a48fc Mon Sep 17 00:00:00 2001 From: sdburns1998 Date: Sun, 7 Jul 2019 03:05:01 +0200 Subject: [PATCH] cluescroll: hotcold: Don't access the map twice --- .../client/plugins/cluescrolls/clues/HotColdClue.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/HotColdClue.java b/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/HotColdClue.java index 219916d240..ae18259fb4 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/HotColdClue.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/cluescrolls/clues/HotColdClue.java @@ -171,11 +171,11 @@ public class HotColdClue extends ClueScroll implements LocationClueScroll, Locat if (digLocations.size() > 10) { - for (HotColdArea area : locationCounts.keySet()) + for (Map.Entry locationCount : locationCounts.entrySet()) { panelComponent.getChildren().add(LineComponent.builder() - .left(area.getName()) - .right(Integer.toString(locationCounts.get(area))) + .left(locationCount.getKey().getName()) + .right(Integer.toString(locationCount.getValue())) .build()); } }