From 31ea7297c2ec0aa114756dadba1185cd831f637f 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 74246c907..6f50b358b 100644 --- a/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java +++ b/Core/src/main/java/com/plotsquared/core/plot/PlotArea.java @@ -1116,7 +1116,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 9cb1b1d23..13a9c7059 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 @@ -207,6 +207,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;