From 29e0479081c20dbd7276d22a85286f118fe24641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20S=C3=B6derberg?= Date: Sat, 16 May 2020 19:26:58 +0200 Subject: [PATCH] Fix preset initialization --- .../plotsquared/core/components/ComponentPresetManager.java | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java b/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java index e1b633a88..80ae1deb4 100644 --- a/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java +++ b/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java @@ -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) o) .map(ComponentPreset::deserialize).collect(Collectors.toList());