Fix preset initialization

This commit is contained in:
Alexander Söderberg 2020-05-16 19:26:58 +02:00 committed by Alexander Söderberg
parent 441a73839e
commit 29e0479081

View file

@ -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());