From 2b0c5b1e21a5216377bee3b193c973b4e7f291f8 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 16 Jun 2022 15:22:27 +0100 Subject: [PATCH] Reset wall filling on clear (#3680) - 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 ee6fd7890..61658391f 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotModificationManager.java @@ -30,6 +30,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; @@ -248,6 +249,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) {