mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
Fixes #517
This commit is contained in:
parent
f5720ad761
commit
f37520cae1
@ -180,7 +180,7 @@ public class ExtentEntityCopy implements EntityFunction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ListTag rotation = tag.getListTag("Rotation");
|
ListTag rotation = tag.getListTag("Rotation");
|
||||||
if (rotation != null) {
|
if (rotation != null && rotation.getValue().size() >= 2) {
|
||||||
double yaw = Math.toRadians(rotation.getFloat(0));
|
double yaw = Math.toRadians(rotation.getFloat(0));
|
||||||
double pitch = Math.toRadians(rotation.getFloat(1));
|
double pitch = Math.toRadians(rotation.getFloat(1));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user