mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
fix: hollow on large areas fails (#2900)
fix: determine BlockVector3Set by region size for recurse hollow
This commit is contained in:
parent
f5f9ae6a85
commit
6a0b006da6
@ -3611,7 +3611,8 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void recurseHollow(Region region, BlockVector3 origin, Set<BlockVector3> outside, Mask mask) {
|
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);
|
queue.add(origin);
|
||||||
|
|
||||||
while (!queue.isEmpty()) {
|
while (!queue.isEmpty()) {
|
||||||
@ -3634,6 +3635,7 @@ public class EditSession extends PassthroughExtent implements AutoCloseable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// FAWE end
|
||||||
}
|
}
|
||||||
|
|
||||||
public int makeBiomeShape(
|
public int makeBiomeShape(
|
||||||
|
Loading…
Reference in New Issue
Block a user