mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 13:16:45 +01:00
Fix preset initialization
This commit is contained in:
parent
441a73839e
commit
29e0479081
@ -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 New Issue
Block a user