This commit is contained in:
Jesse Boyd 2017-04-28 13:16:27 +10:00
parent f5720ad761
commit f37520cae1
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -180,7 +180,7 @@ public class ExtentEntityCopy implements EntityFunction {
}
ListTag rotation = tag.getListTag("Rotation");
if (rotation != null) {
if (rotation != null && rotation.getValue().size() >= 2) {
double yaw = Math.toRadians(rotation.getFloat(0));
double pitch = Math.toRadians(rotation.getFloat(1));