From 98b4ceab7dd3def73f1723882145332726bc49c7 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Wed, 13 May 2020 16:29:10 +0100 Subject: [PATCH] Fix style.yml --- Core/src/main/java/com/plotsquared/core/PlotSquared.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/PlotSquared.java b/Core/src/main/java/com/plotsquared/core/PlotSquared.java index f17226cd3..2bfa1a35f 100644 --- a/Core/src/main/java/com/plotsquared/core/PlotSquared.java +++ b/Core/src/main/java/com/plotsquared/core/PlotSquared.java @@ -1923,11 +1923,16 @@ public class PlotSquared { object.put("color.14", "d"); object.put("color.15", "e"); object.put("color.16", "f"); - if (!this.style.contains("color")) { + if (!this.style.contains("color") + || this.style.getConfigurationSection("color").getValues(false).size() != object + .size()) { for (Entry node : object.entrySet()) { this.style.set(node.getKey(), node.getValue()); } } + if (this.style.contains("version")) { + this.style.set("version", null); + } } /**