Fix stack (for real this time)

This commit is contained in:
Jesse Boyd 2016-09-25 22:04:27 +10:00
parent 801495c1bb
commit d5e2527150

View File

@ -61,7 +61,6 @@ public class ForwardExtentCopy implements Operation {
private RegionFunction sourceFunction = null; private RegionFunction sourceFunction = null;
private Transform transform = new Identity(); private Transform transform = new Identity();
private Transform currentTransform = null; private Transform currentTransform = null;
private RegionVisitor lastVisitor;
private int affected; private int affected;
/** /**
@ -212,11 +211,6 @@ public class ForwardExtentCopy implements Operation {
@Override @Override
public Operation resume(RunContext run) throws WorldEditException { public Operation resume(RunContext run) throws WorldEditException {
if (lastVisitor != null) {
affected += lastVisitor.getAffected();
lastVisitor = null;
}
if (currentTransform == null) { if (currentTransform == null) {
currentTransform = transform; currentTransform = transform;
} }
@ -233,11 +227,11 @@ public class ForwardExtentCopy implements Operation {
entityCopy.setRemoving(removingEntities); entityCopy.setRemoving(removingEntities);
EntityVisitor entityVisitor = new EntityVisitor(entities.iterator(), entityCopy); EntityVisitor entityVisitor = new EntityVisitor(entities.iterator(), entityCopy);
lastVisitor = blockVisitor;
currentTransform = currentTransform.combine(transform); currentTransform = currentTransform.combine(transform);
Operations.completeBlindly(blockVisitor); Operations.completeBlindly(blockVisitor);
Operations.completeBlindly(entityVisitor); Operations.completeBlindly(entityVisitor);
affected += blockVisitor.getAffected();
} }
return null; return null;
} }