1
mirror of https://github.com/CarmJos/MoeTeleport.git synced 2024-09-19 21:35:56 +00:00

1.0.3 版本更新

1. [F] 修复传送点异常的问题。
This commit is contained in:
Carm Jos 2021-12-17 13:33:21 +08:00
parent 5439c57dde
commit affdb47034
2 changed files with 7 additions and 7 deletions

View File

@ -13,7 +13,7 @@
<groupId>cc.carm.plugin</groupId> <groupId>cc.carm.plugin</groupId>
<artifactId>moeteleport</artifactId> <artifactId>moeteleport</artifactId>
<version>1.0.2</version> <version>1.0.3</version>
<name>MoeTeleport</name> <name>MoeTeleport</name>
<description>喵喵传送,简单的传送、设置家的插件。</description> <description>喵喵传送,简单的传送、设置家的插件。</description>

View File

@ -149,14 +149,14 @@ public class DataLocation implements Cloneable {
if (args.length < 4) return null; if (args.length < 4) return null;
try { try {
String worldName = args[0]; String worldName = args[0];
double x = NumberConversions.toDouble(args[0]); double x = NumberConversions.toDouble(args[1]);
double y = NumberConversions.toDouble(args[1]); double y = NumberConversions.toDouble(args[2]);
double z = NumberConversions.toDouble(args[2]); double z = NumberConversions.toDouble(args[3]);
float yaw = 0; float yaw = 0;
float pitch = 0; float pitch = 0;
if (args.length == 5) { if (args.length == 6) {
yaw = NumberConversions.toFloat(args[3]); yaw = NumberConversions.toFloat(args[4]);
pitch = NumberConversions.toFloat(args[4]); pitch = NumberConversions.toFloat(args[5]);
} }
return new DataLocation(worldName, x, y, z, yaw, pitch); return new DataLocation(worldName, x, y, z, yaw, pitch);
} catch (Exception ex) { } catch (Exception ex) {