Skip to content

Commit

Permalink
Nicer biome setting method
Browse files Browse the repository at this point in the history
  • Loading branch information
dordsor21 committed Dec 3, 2023
1 parent eb01151 commit 9d32da9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ public boolean handleClear(
editSession.setBlocks(onTop, air);
}

new CuboidRegion(pos1, pos2).forEach(bv3 -> editSession.setBiome(bv3, biome));
FlatRegionFunction replace = new BiomeReplace(editSession, biome);
FlatRegionVisitor visitor = new FlatRegionVisitor((CuboidRegion) floorRegion, replace, editSession);
Operations.completeLegacy(visitor);
}

if (hybridPlotWorld.PLOT_SCHEMATIC) {
Expand Down

0 comments on commit 9d32da9

Please sign in to comment.