Skip to content

Commit

Permalink
fix: hollow on large areas fails (#2900)
Browse files Browse the repository at this point in the history
fix: determine BlockVector3Set by region size for recurse hollow
  • Loading branch information
PierreSchwang authored Sep 1, 2024
1 parent f5f9ae6 commit 6a0b006
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3611,7 +3611,8 @@ public Set<BlockVector3> getHollowed(Set<BlockVector3> vset) {
}

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()) {
Expand All @@ -3634,6 +3635,7 @@ private void recurseHollow(Region region, BlockVector3 origin, Set<BlockVector3>
}
}
}
// FAWE end
}

public int makeBiomeShape(
Expand Down

0 comments on commit 6a0b006

Please sign in to comment.