diff options
| author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-03-12 18:04:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 18:04:56 +0100 |
| commit | b808a6aea1ba28ffd10712e7586b6f0d6cc1804a (patch) | |
| tree | 1c4b9f8eacd97718b4042393a39c0ccbccf8dfa9 /src/main/java/at/hannibal2/skyhanni/features/rift | |
| parent | 9f1ba8207e8ae14da50058eeaaf0eb750b530dfa (diff) | |
| download | skyhanni-b808a6aea1ba28ffd10712e7586b6f0d6cc1804a.tar.gz skyhanni-b808a6aea1ba28ffd10712e7586b6f0d6cc1804a.tar.bz2 skyhanni-b808a6aea1ba28ffd10712e7586b6f0d6cc1804a.zip | |
Internal Change: Code cleanup ContainerChest getAllItems (#1047)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/rift')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt index 17dfacbd8..cc489c777 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt @@ -10,6 +10,7 @@ import at.hannibal2.skyhanni.events.RepositoryReloadEvent import at.hannibal2.skyhanni.features.rift.RiftAPI import at.hannibal2.skyhanni.test.GriffinUtils.drawWaypointFilled import at.hannibal2.skyhanni.utils.ChatUtils +import at.hannibal2.skyhanni.utils.InventoryUtils.getAllItems import at.hannibal2.skyhanni.utils.ItemUtils.getLore import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer import at.hannibal2.skyhanni.utils.LorenzColor @@ -117,10 +118,7 @@ object EnigmaSoulWaypoints { val guiChest = event.gui val chest = guiChest.inventorySlots as ContainerChest - for (slot in chest.inventorySlots) { - if (slot == null) continue - val stack = slot.stack ?: continue - + for ((slot, stack) in chest.getAllItems()) { for (soul in trackedSouls) { if (stack.displayName.removeColor().contains(soul)) { slot highlight LorenzColor.DARK_PURPLE |
