From 54aba6cbdd46da9f4c9d064382c0f487d06e3c0b Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Sat, 23 Mar 2024 18:59:27 +0100 Subject: fill deskPlotStatusTypes with default list --- .../config/features/garden/PlotMenuHighlightingConfig.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/java/at/hannibal2/skyhanni/config/features/garden/PlotMenuHighlightingConfig.java b/src/main/java/at/hannibal2/skyhanni/config/features/garden/PlotMenuHighlightingConfig.java index acf10ec5d..5918168e4 100644 --- a/src/main/java/at/hannibal2/skyhanni/config/features/garden/PlotMenuHighlightingConfig.java +++ b/src/main/java/at/hannibal2/skyhanni/config/features/garden/PlotMenuHighlightingConfig.java @@ -8,6 +8,7 @@ import io.github.moulberry.moulconfig.annotations.ConfigEditorDraggableList; import io.github.moulberry.moulconfig.annotations.ConfigOption; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; public class PlotMenuHighlightingConfig { @@ -20,13 +21,18 @@ public class PlotMenuHighlightingConfig { @Expose @ConfigOption(name = "Statuses", desc = "Change which statuses are enabled, and the hierarchy of them.") @ConfigEditorDraggableList - public List deskPlotStatusTypes = new ArrayList<>(); + public List deskPlotStatusTypes = new ArrayList<>(Arrays.asList( + PlotStatusType.CURRENT, + PlotStatusType.PESTS, + PlotStatusType.SPRAYS, + PlotStatusType.LOCKED + )); public enum PlotStatusType { PESTS("§cPests", LorenzColor.RED), SPRAYS("§eSprays", LorenzColor.YELLOW), LOCKED("§7Locked", LorenzColor.DARK_GRAY), - CURRENT("§aCurrent plot", LorenzColor.GREEN) + CURRENT("§aCurrent plot", LorenzColor.GREEN), ; public final String name; -- cgit