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/cosmetics | |
| 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/cosmetics')
| -rw-r--r-- | src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt b/src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt index 662ad68a0..022ec07b9 100644 --- a/src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt +++ b/src/main/java/at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt @@ -69,7 +69,7 @@ class CosmeticFollowingLine { } private fun updateClose(event: LorenzRenderWorldEvent) { - val playerLocation = event.exactLocation(Minecraft.getMinecraft().thePlayer).add(0.0, 0.3, 0.0) + val playerLocation = event.exactLocation(Minecraft.getMinecraft().thePlayer).add(y = 0.3) latestLocations = latestLocations.editCopy { val locationSpot = LocationSpot(SimpleTimeMark.now(), Minecraft.getMinecraft().thePlayer.onGround) @@ -110,7 +110,7 @@ class CosmeticFollowingLine { } if (event.isMod(2)) { - val playerLocation = LocationUtils.playerLocation().add(0.0, 0.3, 0.0) + val playerLocation = LocationUtils.playerLocation().add(y = 0.3) locations.keys.lastOrNull()?.let { if (it.distance(playerLocation) < 0.1) return |
