aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-12 12:17:04 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2024-05-12 12:17:04 +0200
commit1f2b21342a1136ddcd57b9d3823b64cf1ee45efa (patch)
treee4e1c57c5ea6195318f4bba6090f52c651f4b884 /src/main/java
parent159ac2beb9e282d2f697d520bcf322b3fb10a17a (diff)
downloadskyhanni-1f2b21342a1136ddcd57b9d3823b64cf1ee45efa.tar.gz
skyhanni-1f2b21342a1136ddcd57b9d3823b64cf1ee45efa.tar.bz2
skyhanni-1f2b21342a1136ddcd57b9d3823b64cf1ee45efa.zip
code cleanup
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/rift/everywhere/EnigmaSoulWaypoints.kt13
1 files changed, 7 insertions, 6 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 7b337a2e5..cd2f667eb 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
@@ -98,13 +98,14 @@ object EnigmaSoulWaypoints {
val split = event.slot.stack.displayName.split("Enigma: ")
if (split.size == 2) {
event.makePickblock()
- if (soulLocations.contains(split.last())) {
- if (!trackedSouls.contains(split.last())) {
- ChatUtils.chat("§5Tracking the ${split.last()} Enigma Soul!", prefixColor = "§5")
- trackedSouls.add(split.last())
+ val name = split.last()
+ if (soulLocations.contains(name)) {
+ if (!trackedSouls.contains(name)) {
+ ChatUtils.chat("§5Tracking the $name Enigma Soul!", prefixColor = "§5")
+ trackedSouls.add(name)
} else {
- trackedSouls.remove(split.last())
- ChatUtils.chat("§5No longer tracking the ${split.last()} Enigma Soul!", prefixColor = "§5")
+ trackedSouls.remove(name)
+ ChatUtils.chat("§5No longer tracking the $name Enigma Soul!", prefixColor = "§5")
}
}
}