mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +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");
|
this.guiName = yamlConfiguration.getString("title", "&6Plot Components");
|
||||||
|
|
||||||
if (!yamlConfiguration.contains("presets")) {
|
|
||||||
yamlConfiguration.createSection("presets");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (yamlConfiguration.contains("presets")) {
|
if (yamlConfiguration.contains("presets")) {
|
||||||
this.presets = yamlConfiguration.getMapList("presets").stream().map(o -> (Map<String, Object>) o)
|
this.presets = yamlConfiguration.getMapList("presets").stream().map(o -> (Map<String, Object>) o)
|
||||||
.map(ComponentPreset::deserialize).collect(Collectors.toList());
|
.map(ComponentPreset::deserialize).collect(Collectors.toList());
|
||||||
|
Loading…
Reference in New Issue
Block a user