From b8db01c32f2936728dde3a6f68711e9e0fce5bed Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Fri, 1 Dec 2023 02:14:04 +0100 Subject: utilizing location.add(x = x) --- .../at/hannibal2/skyhanni/features/cosmetics/CosmeticFollowingLine.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/features/cosmetics') 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 -- cgit