mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix preset initialization
This commit is contained in:
parent
441a73839e
commit
29e0479081
1 changed files with 0 additions and 4 deletions
|
@ -92,10 +92,6 @@ public class ComponentPresetManager {
|
|||
}
|
||||
this.guiName = yamlConfiguration.getString("title", "&6Plot Components");
|
||||
|
||||
if (!yamlConfiguration.contains("presets")) {
|
||||
yamlConfiguration.createSection("presets");
|
||||
}
|
||||
|
||||
if (yamlConfiguration.contains("presets")) {
|
||||
this.presets = yamlConfiguration.getMapList("presets").stream().map(o -> (Map<String, Object>) o)
|
||||
.map(ComponentPreset::deserialize).collect(Collectors.toList());
|
||||
|
|
Loading…
Reference in a new issue