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) {