mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-08-09 07:45:27 +02:00
Fix preset initialization
This commit is contained in:

committed by
Alexander Söderberg

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());
|
||||||
|
Reference in New Issue
Block a user