From de26c22f05106fe33faffb72f4f4cd21c6a4a474 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Mon, 15 May 2017 19:38:22 +1000 Subject: [PATCH] Fix MutableEntityChange error --- .../com/boydti/fawe/object/change/MutableEntityChange.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/com/boydti/fawe/object/change/MutableEntityChange.java b/core/src/main/java/com/boydti/fawe/object/change/MutableEntityChange.java index fcbdf5cf..9b9a572c 100644 --- a/core/src/main/java/com/boydti/fawe/object/change/MutableEntityChange.java +++ b/core/src/main/java/com/boydti/fawe/object/change/MutableEntityChange.java @@ -95,7 +95,12 @@ public class MutableEntityChange implements Change { public void perform(FaweQueue queue) { Map map = tag.getValue(); - List pos = (List) map.get("Pos").getValue(); + Tag posTag = map.get("Pos"); + if (posTag == null) { + Fawe.debug("Missing pos tag: " + tag); + return; + } + List pos = (List) posTag.getValue(); int x = (int) Math.round(pos.get(0).getValue()); int y = (int) Math.round(pos.get(1).getValue()); int z = (int) Math.round(pos.get(2).getValue());