From affdb47034b9435806ecb73d860320ede046bbbe Mon Sep 17 00:00:00 2001 From: CarmJos Date: Fri, 17 Dec 2021 13:33:21 +0800 Subject: [PATCH] =?UTF-8?q?1.0.3=20=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0=20?= =?UTF-8?q?1.=20[F]=20=E4=BF=AE=E5=A4=8D=E4=BC=A0=E9=80=81=E7=82=B9?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- .../configuration/location/DataLocation.java | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index b5a4cef..3f04dfd 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,7 @@ cc.carm.plugin moeteleport - 1.0.2 + 1.0.3 MoeTeleport 喵喵传送,简单的传送、设置家的插件。 diff --git a/src/main/java/cc/carm/plugin/moeteleport/configuration/location/DataLocation.java b/src/main/java/cc/carm/plugin/moeteleport/configuration/location/DataLocation.java index 3a49fea..e29a92f 100644 --- a/src/main/java/cc/carm/plugin/moeteleport/configuration/location/DataLocation.java +++ b/src/main/java/cc/carm/plugin/moeteleport/configuration/location/DataLocation.java @@ -149,14 +149,14 @@ public static DataLocation deserializeText(String s) { if (args.length < 4) return null; try { String worldName = args[0]; - double x = NumberConversions.toDouble(args[0]); - double y = NumberConversions.toDouble(args[1]); - double z = NumberConversions.toDouble(args[2]); + double x = NumberConversions.toDouble(args[1]); + double y = NumberConversions.toDouble(args[2]); + double z = NumberConversions.toDouble(args[3]); float yaw = 0; float pitch = 0; - if (args.length == 5) { - yaw = NumberConversions.toFloat(args[3]); - pitch = NumberConversions.toFloat(args[4]); + if (args.length == 6) { + yaw = NumberConversions.toFloat(args[4]); + pitch = NumberConversions.toFloat(args[5]); } return new DataLocation(worldName, x, y, z, yaw, pitch); } catch (Exception ex) {