aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/fishing
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal002@users.noreply.github.com>2024-03-07 01:20:43 +0100
committerGitHub <noreply@github.com>2024-03-07 01:20:43 +0100
commit84589e27e919acd6f8972bb053e209b175950cfc (patch)
tree33e168a478c85ff5170e67c88594ada2538370aa /src/main/java/at/hannibal2/skyhanni/features/fishing
parent0dd5963b30522610991bc1f75b188d7c4f8266d5 (diff)
downloadskyhanni-84589e27e919acd6f8972bb053e209b175950cfc.tar.gz
skyhanni-84589e27e919acd6f8972bb053e209b175950cfc.tar.bz2
skyhanni-84589e27e919acd6f8972bb053e209b175950cfc.zip
Interlal Change: Code cleanup (#1113)
Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
index deb699327..f17ec4587 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/trophy/GeyserFishing.kt
@@ -22,19 +22,17 @@ import java.awt.Color
class GeyserFishing {
private val config get() = SkyHanniMod.feature.fishing.trophyFishing.geyserOptions
+ private val geyserOffset = LorenzVec(0.1f, 0.6f, 0.1f)
+
private var geyser: LorenzVec? = null
private var geyserBox: AxisAlignedBB? = null
@SubscribeEvent(priority = EventPriority.LOW, receiveCanceled = true)
fun onReceiveParticle(event: ReceiveParticleEvent) {
if (!shouldProcessParticles()) return
- if (event.type != EnumParticleTypes.CLOUD || event.count != 15 || event.speed != 0.05f || event.offset != LorenzVec(
- 0.1f,
- 0.6f,
- 0.1f
- )
- ) return
-
+ with(event) {
+ if (type != EnumParticleTypes.CLOUD || count != 15 || speed != 0.05f || offset != geyserOffset) return
+ }
geyser = event.location
val potentialGeyser = geyser ?: return