fix: hollow on large areas fails (#2900)

fix: determine BlockVector3Set by region size for recurse hollow
This commit is contained in:
Pierre Maurice Schwang 2024-09-01 12:25:54 +02:00 committed by GitHub
parent f5f9ae6a85
commit 6a0b006da6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3611,7 +3611,8 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
}
private void recurseHollow(Region region, BlockVector3 origin, Set<BlockVector3> outside, Mask mask) {
final LocalBlockVectorSet queue = new LocalBlockVectorSet();
// FAWE start - use BlockVector3Set instead of LinkedList
final BlockVector3Set queue = BlockVector3Set.getAppropriateVectorSet(region);
queue.add(origin);
while (!queue.isEmpty()) {
@ -3634,6 +3635,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
}
}
}
// FAWE end
}
public int makeBiomeShape(