mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
Fix stack (for real this time)
This commit is contained in:
parent
801495c1bb
commit
d5e2527150
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user