From d5e252715004a1031be24407a177aa67e8a780c6 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Sun, 25 Sep 2016 22:04:27 +1000 Subject: [PATCH] Fix stack (for real this time) --- .../function/operation/ForwardExtentCopy.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/core/src/main/java/com/sk89q/worldedit/function/operation/ForwardExtentCopy.java b/core/src/main/java/com/sk89q/worldedit/function/operation/ForwardExtentCopy.java index d75cbaa9..2a98e7d0 100644 --- a/core/src/main/java/com/sk89q/worldedit/function/operation/ForwardExtentCopy.java +++ b/core/src/main/java/com/sk89q/worldedit/function/operation/ForwardExtentCopy.java @@ -61,7 +61,6 @@ public class ForwardExtentCopy implements Operation { private RegionFunction sourceFunction = null; private Transform transform = new Identity(); private Transform currentTransform = null; - private RegionVisitor lastVisitor; private int affected; /** @@ -212,11 +211,6 @@ public class ForwardExtentCopy implements Operation { @Override public Operation resume(RunContext run) throws WorldEditException { - if (lastVisitor != null) { - affected += lastVisitor.getAffected(); - lastVisitor = null; - } - if (currentTransform == null) { currentTransform = transform; } @@ -233,11 +227,11 @@ public class ForwardExtentCopy implements Operation { entityCopy.setRemoving(removingEntities); EntityVisitor entityVisitor = new EntityVisitor(entities.iterator(), entityCopy); - lastVisitor = blockVisitor; - currentTransform = currentTransform.combine(transform); Operations.completeBlindly(blockVisitor); Operations.completeBlindly(entityVisitor); + + affected += blockVisitor.getAffected(); } return null; }