diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-01 02:14:04 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-12-01 02:14:04 +0100 |
commit | b8db01c32f2936728dde3a6f68711e9e0fce5bed (patch) | |
tree | fbaf917b5713234967f3b518ab445e6558c079db /src/main/java/at/hannibal2/skyhanni/features/fishing | |
parent | aef7ba127c67950a685fead8a79c3daf7fa23e4b (diff) | |
download | skyhanni-b8db01c32f2936728dde3a6f68711e9e0fce5bed.tar.gz skyhanni-b8db01c32f2936728dde3a6f68711e9e0fce5bed.tar.bz2 skyhanni-b8db01c32f2936728dde3a6f68711e9e0fce5bed.zip |
utilizing location.add(x = x)
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/fishing')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt | 2 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt index a64d3da77..4a41b332c 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/ShowFishingItemName.kt @@ -47,7 +47,7 @@ class ShowFishingItemName { if (!isEnabled()) return if (hasRodInHand) { for (entityItem in EntityUtils.getEntities<EntityItem>()) { - val location = event.exactLocation(entityItem).add(0.0, 0.8, 0.0) + val location = event.exactLocation(entityItem).add(y = 0.8) if (location.distance(LocationUtils.playerLocation()) > 15) continue val itemStack = entityItem.entityItem var name = itemStack.name ?: continue diff --git a/src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt b/src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt index bab0d5ae1..e49e8e3f8 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/fishing/ThunderSparksHighlight.kt @@ -55,7 +55,7 @@ class ThunderSparksHighlight { sparkLocation.add(-0.5, 0.0, -0.5), color, extraSize = -0.25, seeThroughBlocks = seeThroughBlocks ) if (sparkLocation.distance(playerLocation) < 10) { - event.drawString(sparkLocation.add(0.0, 1.5, 0.0), "Thunder Spark", seeThroughBlocks = seeThroughBlocks) + event.drawString(sparkLocation.add(y = 1.5), "Thunder Spark", seeThroughBlocks = seeThroughBlocks) } } } @@ -74,4 +74,4 @@ class ThunderSparksHighlight { event.move(3, "fishing.thunderSparkHighlight", "fishing.thunderSpark.highlight") event.move(3, "fishing.thunderSparkColor", "fishing.thunderSpark.color") } -}
\ No newline at end of file +} |