From 9d32da92749297cc837e976bcb944da35c0f55b3 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 3 Dec 2023 15:22:55 +0000 Subject: [PATCH] Nicer biome setting method --- .../bukkit/regions/plotsquared/FaweDelegateRegionManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/regions/plotsquared/FaweDelegateRegionManager.java b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/regions/plotsquared/FaweDelegateRegionManager.java index c961f48670..65f8863f83 100644 --- a/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/regions/plotsquared/FaweDelegateRegionManager.java +++ b/worldedit-bukkit/src/main/java/com/fastasyncworldedit/bukkit/regions/plotsquared/FaweDelegateRegionManager.java @@ -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) {