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:
parent
5439c57dde
commit
affdb47034
2
pom.xml
2
pom.xml
@ -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>
|
||||
|
@ -149,14 +149,14 @@ public class DataLocation implements Cloneable {
|
||||
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user