From cb7d1d30a4bfaf7055755f4f14200078b21e62a7 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Mon, 13 Jun 2022 21:06:08 +0100 Subject: [PATCH] Reset wall filling on clear - Implements #3591 --- .../com/plotsquared/core/plot/PlotModificationManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java b/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java index 68052f02c..09b320a1b 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java @@ -37,6 +37,7 @@ import com.plotsquared.core.events.PlotComponentSetEvent; import com.plotsquared.core.events.PlotMergeEvent; import com.plotsquared.core.events.PlotUnlinkEvent; import com.plotsquared.core.events.Result; +import com.plotsquared.core.generator.ClassicPlotWorld; import com.plotsquared.core.generator.SquarePlotWorld; import com.plotsquared.core.inject.factory.ProgressSubscriberFactory; import com.plotsquared.core.location.Direction; @@ -255,6 +256,9 @@ public final class PlotModificationManager { manager.unClaimPlot(current, null, queue); } else { manager.claimPlot(current, queue); + if (plot.getArea() instanceof ClassicPlotWorld cpw) { + manager.setComponent(current.getId(), "wall", cpw.WALL_FILLING.toPattern(), actor, queue); + } } } if (queue.size() > 0) {