From 15ec2987d44b282e2978e9b7853fae14da16ca6b Mon Sep 17 00:00:00 2001 From: yuuki1293 Date: Sat, 20 Aug 2022 00:20:41 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BA=A7=E6=A8=99=E3=81=8Cfloat?= =?UTF-8?q?=E3=81=A7=E9=80=81=E4=BF=A1=E3=81=95=E3=82=8C=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kagawaassist/coordinate/CopyCoordinate.scala | 2 +- .../kagawaassist/coordinate/SendCoordinate.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/staticallytyped/kagawaassist/coordinate/CopyCoordinate.scala b/src/main/scala/staticallytyped/kagawaassist/coordinate/CopyCoordinate.scala index f052227..c0b7ddb 100644 --- a/src/main/scala/staticallytyped/kagawaassist/coordinate/CopyCoordinate.scala +++ b/src/main/scala/staticallytyped/kagawaassist/coordinate/CopyCoordinate.scala @@ -9,7 +9,7 @@ object CopyCoordinate { try { val player = Minecraft.getInstance().player val clipboard = new ClipboardManager() - val text = s"${player.getX()} ${player.getY()} ${player.getZ()}" + val text = s"${player.getX.toInt} ${player.getY.toInt} ${player.getZ.toInt}" val window = Minecraft.getInstance().getWindow.getWindow clipboard.setClipboard(window, text) } catch { diff --git a/src/main/scala/staticallytyped/kagawaassist/coordinate/SendCoordinate.scala b/src/main/scala/staticallytyped/kagawaassist/coordinate/SendCoordinate.scala index 1eacb78..23768ce 100644 --- a/src/main/scala/staticallytyped/kagawaassist/coordinate/SendCoordinate.scala +++ b/src/main/scala/staticallytyped/kagawaassist/coordinate/SendCoordinate.scala @@ -5,7 +5,7 @@ import net.minecraft.client.Minecraft object SendCoordinate { def onPressKey(): Unit = { val player = Minecraft.getInstance().player - val text = s"${player.getX()} ${player.getY()} ${player.getZ()}" + val text = s"${player.getX.toInt} ${player.getY.toInt} ${player.getZ.toInt}" player.chat(text) } }