Skip to content

Commit

Permalink
1.0.3 版本更新
Browse files Browse the repository at this point in the history
1. [F] 修复传送点异常的问题。
  • Loading branch information
CarmJos committed Dec 17, 2021
1 parent 5439c57 commit affdb47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>cc.carm.plugin</groupId>
<artifactId>moeteleport</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>

<name>MoeTeleport</name>
<description>喵喵传送,简单的传送、设置家的插件。</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit affdb47

Please sign in to comment.