mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix style.yml
This commit is contained in:
parent
a038cb6d1b
commit
98b4ceab7d
1 changed files with 6 additions and 1 deletions
|
@ -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<String, Object> node : object.entrySet()) {
|
||||
this.style.set(node.getKey(), node.getValue());
|
||||
}
|
||||
}
|
||||
if (this.style.contains("version")) {
|
||||
this.style.set("version", null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue