From 3174b0cf96a4bb4f31c8c94a6d604e580639a3e3 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sun, 12 Mar 2023 21:13:43 +0100 Subject: NumberFormat optimizations --- src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/main/java/at/hannibal2/skyhanni/test') diff --git a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt index 7251facb1..ea1ac0a82 100644 --- a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt +++ b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt @@ -6,7 +6,6 @@ import at.hannibal2.skyhanni.events.LorenzChatEvent import at.hannibal2.skyhanni.events.PlaySoundEvent import at.hannibal2.skyhanni.events.ReceiveParticleEvent import at.hannibal2.skyhanni.utils.* -import at.hannibal2.skyhanni.utils.LorenzUtils.round import at.hannibal2.skyhanni.utils.RenderUtils.renderString import net.minecraft.nbt.NBTTagCompound import net.minecraftforge.common.MinecraftForge @@ -106,9 +105,9 @@ class LorenzTest { fun copyLocation() { val location = LocationUtils.playerLocation() - val x = LorenzUtils.formatDouble(location.x.round(1), "0.0") - val y = LorenzUtils.formatDouble(location.y.round(1), "0.0") - val z = LorenzUtils.formatDouble(location.z.round(1), "0.0") + val x = LorenzUtils.formatDouble(location.x) + val y = LorenzUtils.formatDouble(location.y) + val z = LorenzUtils.formatDouble(location.z) OSUtils.copyToClipboard("LorenzVec($x, $y, $z)") } } -- cgit