From 06805057d4123b761d45dbe2fbb32db1dc0a7552 Mon Sep 17 00:00:00 2001 From: Leijurv Date: Sat, 5 Oct 2019 19:49:38 -0700 Subject: [PATCH] unscuff js code --- .../api/utils/command/datatypes/RelativeCoordinate.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/api/java/baritone/api/utils/command/datatypes/RelativeCoordinate.java b/src/api/java/baritone/api/utils/command/datatypes/RelativeCoordinate.java index e56f4b8c..c8ae3519 100644 --- a/src/api/java/baritone/api/utils/command/datatypes/RelativeCoordinate.java +++ b/src/api/java/baritone/api/utils/command/datatypes/RelativeCoordinate.java @@ -44,10 +44,7 @@ public enum RelativeCoordinate implements IDatatypePost { double offset = matcher.group(2).isEmpty() ? 0 : Double.parseDouble(matcher.group(2).replaceAll("k", "")); if (matcher.group(2).contains("k")) { - String newString = matcher.group(2).replaceAll("k", ""); - double convertedNumber = Double.parseDouble(newString); - convertedNumber = convertedNumber * 1000; - offset = convertedNumber; + offset *= 1000; } if (isRelative) {