From 769d8b3a7a660bf471eea00f26013fe1f41663e3 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 7 Dec 2023 17:24:05 +0000 Subject: [PATCH] fix: set biome biome on clear (#2510) * fix: set biome biome on clear - fixes #2509 * Nicer biome setting method --- .../bukkit/regions/plotsquared/FaweDelegateRegionManager.java | 4 ++++ 1 file changed, 4 insertions(+) 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 4ef1a3d05..65f8863f8 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 @@ -160,6 +160,10 @@ public class FaweDelegateRegionManager { ); editSession.setBlocks(onTop, air); } + + FlatRegionFunction replace = new BiomeReplace(editSession, biome); + FlatRegionVisitor visitor = new FlatRegionVisitor((CuboidRegion) floorRegion, replace, editSession); + Operations.completeLegacy(visitor); } if (hybridPlotWorld.PLOT_SCHEMATIC) {