summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/event
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 23:37:18 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-08-07 23:37:18 +0200
commit02ac961b3f1a371302963559e875698de8eb7a1d (patch)
tree6432f510a74cc9381610466442ca023de6498a8a /src/main/java/at/hannibal2/skyhanni/features/event
parent8b2bc18775d69d4ab854eed7e3e10e36085043fd (diff)
downloadskyhanni-02ac961b3f1a371302963559e875698de8eb7a1d.tar.gz
skyhanni-02ac961b3f1a371302963559e875698de8eb7a1d.tar.bz2
skyhanni-02ac961b3f1a371302963559e875698de8eb7a1d.zip
replace enum.getEntries() to enum.entries and using .addSelector<Enum>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/event')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt4
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
index 7f6ee3670..f843ff942 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/BurrowWarpHelper.kt
@@ -78,12 +78,12 @@ class BurrowWarpHelper {
}
private fun getNearestWarpPoint(location: LorenzVec): WarpPoint {
- val map = WarpPoint.values().filter { it.enabled }.map { it to it.distance(location) }
+ val map = WarpPoint.entries.filter { it.enabled }.map { it to it.distance(location) }
return map.sorted().first().first
}
fun resetDisabledWarps() {
- WarpPoint.values().forEach { it.enabled = true }
+ WarpPoint.entries.forEach { it.enabled = true }
LorenzUtils.chat("§e[SkyHanni] Reset disabled burrow warps.")
}
}
diff --git a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt
index 47ba57337..f8bf9943d 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/event/diana/GriffinBurrowParticleFinder.kt
@@ -131,7 +131,7 @@ class GriffinBurrowParticleFinder {
fun getParticleType(packet: S2APacketParticles): ParticleType? {
if (!packet.isLongDistance) return null
- for (type in values()) {
+ for (type in entries) {
if (type.check(packet)) {
return type
}