From f37520cae17b50de63ceda4504d565ffd3ad0b31 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Fri, 28 Apr 2017 13:16:27 +1000 Subject: [PATCH] Fixes #517 --- .../com/sk89q/worldedit/function/entity/ExtentEntityCopy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/sk89q/worldedit/function/entity/ExtentEntityCopy.java b/core/src/main/java/com/sk89q/worldedit/function/entity/ExtentEntityCopy.java index 3cc799ea..0726f75b 100644 --- a/core/src/main/java/com/sk89q/worldedit/function/entity/ExtentEntityCopy.java +++ b/core/src/main/java/com/sk89q/worldedit/function/entity/ExtentEntityCopy.java @@ -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));