From ea94c0c11abe707d7be7e757e4f61631d353d16c Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 10 Aug 2017 12:39:08 +1000 Subject: [PATCH] Fixes #687 --- .../java/com/boydti/fawe/object/extent/ResettableExtent.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/com/boydti/fawe/object/extent/ResettableExtent.java b/core/src/main/java/com/boydti/fawe/object/extent/ResettableExtent.java index 1f526a14..ac96e090 100644 --- a/core/src/main/java/com/boydti/fawe/object/extent/ResettableExtent.java +++ b/core/src/main/java/com/boydti/fawe/object/extent/ResettableExtent.java @@ -19,8 +19,9 @@ public class ResettableExtent extends AbstractDelegateExtent implements Serializ } public final void init(Vector pos) { - if (getExtent() instanceof ResettableExtent) { - ((ResettableExtent) getExtent()).init(pos); + Extent extent = getExtent(); + if (extent instanceof ResettableExtent && extent != this) { + ((ResettableExtent) extent).init(pos); } setOrigin(pos); }