From c53cffb745657b07552e9566f05c521ab983120a Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Mon, 24 Aug 2020 12:47:17 +0200 Subject: [PATCH] Generate signs by default --- Core/src/main/java/com/plotsquared/core/plot/PlotArea.java | 2 +- .../java/com/plotsquared/core/plot/world/SinglePlotArea.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java index 08ac2f962..704068a3d 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java @@ -1064,7 +1064,7 @@ public abstract class PlotArea { * @return true if plot signs are allow, false otherwise. */ public boolean allowSigns() { - return allowSigns && (this.plots.size() > 1) /* Do not generate signs for single plots */; + return allowSigns; } /** diff --git a/Core/src/main/java/com/plotsquared/core/plot/world/SinglePlotArea.java b/Core/src/main/java/com/plotsquared/core/plot/world/SinglePlotArea.java index a212a0506..5b0667f3a 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/world/SinglePlotArea.java +++ b/Core/src/main/java/com/plotsquared/core/plot/world/SinglePlotArea.java @@ -191,6 +191,11 @@ public class SinglePlotArea extends GridPlotWorld { return super.addPlotIfAbsent(plot); } + @Override + public boolean allowSigns() { + return false; // do not create signs for single plots + } + protected Plot adapt(Plot p) { if (p instanceof SinglePlot) { return p;