geforkt von Mirrors/FastAsyncWorldEdit
Hollow fix
Dieser Commit ist enthalten in:
Ursprung
7f3c4c4828
Commit
e2c2205dac
@ -3376,29 +3376,26 @@ public class EditSession extends AbstractDelegateExtent implements HasFaweQueue,
|
|||||||
|
|
||||||
private void recurseHollow(Region region, BlockVector3 origin, Set<BlockVector3> outside) {
|
private void recurseHollow(Region region, BlockVector3 origin, Set<BlockVector3> outside) {
|
||||||
final LocalBlockVectorSet queue = new LocalBlockVectorSet();
|
final LocalBlockVectorSet queue = new LocalBlockVectorSet();
|
||||||
|
queue.add(origin);
|
||||||
while (!queue.isEmpty()) {
|
while (!queue.isEmpty()) {
|
||||||
Iterator<BlockVector3> iter = queue.iterator();
|
BlockVector3 current = queue.getIndex(0);
|
||||||
while (iter.hasNext()) {
|
queue.remove(current);
|
||||||
BlockVector3 current = iter.next();
|
final BlockState block = getBlock(current);
|
||||||
iter.remove();
|
if (block.getBlockType().getMaterial().isMovementBlocker()) {
|
||||||
final BlockState block = getBlock(current);
|
continue;
|
||||||
if (block.getBlockType().getMaterial().isMovementBlocker()) {
|
}
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!outside.add(current)) {
|
if (!outside.add(current)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!region.contains(current)) {
|
if (!region.contains(current)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (BlockVector3 recurseDirection : recurseDirections) {
|
for (BlockVector3 recurseDirection : recurseDirections) {
|
||||||
queue.add(current.add(recurseDirection));
|
queue.add(current.add(recurseDirection));
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren