diff options
author | hannibal2 <24389977+hannibal002@users.noreply.github.com> | 2024-03-07 01:20:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-07 01:20:43 +0100 |
commit | 84589e27e919acd6f8972bb053e209b175950cfc (patch) | |
tree | 33e168a478c85ff5170e67c88594ada2538370aa /src/main/java/at/hannibal2/skyhanni/features/fishing | |
parent | 0dd5963b30522610991bc1f75b188d7c4f8266d5 (diff) | |
download | skyhanni-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.kt | 12 |
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 |