Skip to content

Commit

Permalink
Use new 'ConfigLockedStringList' for SortingCategory
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Sep 4, 2024
1 parent 757ef77 commit c41b943
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod_version = 0.24.999-snap

# Required malilib version
malilib_version = 0.20.999-snap
malilib_id = 52a9324566
malilib_id = e537670d92

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 24w35a
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/fi/dy/masa/itemscroller/config/Configs.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
import fi.dy.masa.malilib.config.IConfigBase;
import fi.dy.masa.malilib.config.IConfigHandler;
import fi.dy.masa.malilib.config.IConfigValue;
import fi.dy.masa.malilib.config.options.ConfigBoolean;
import fi.dy.masa.malilib.config.options.ConfigInteger;
import fi.dy.masa.malilib.config.options.ConfigOptionList;
import fi.dy.masa.malilib.config.options.ConfigStringList;
import fi.dy.masa.malilib.config.options.*;
import fi.dy.masa.malilib.util.FileUtils;
import fi.dy.masa.malilib.util.JsonUtils;
import fi.dy.masa.itemscroller.Reference;
Expand Down Expand Up @@ -67,7 +64,7 @@ public static class Generic
public static final ConfigStringList SORT_TOP_PRIORITY_INVENTORY = new ConfigStringList("sortTopPriorityInventory", DEFAULT_TOP_SORTING).apply(GENERIC_KEY);
public static final ConfigStringList SORT_BOTTOM_PRIORITY_INVENTORY = new ConfigStringList("sortBottomPriorityInventory", DEFAULT_BOTTOM_SORTING).apply(GENERIC_KEY);
public static final ConfigOptionList SORT_METHOD_DEFAULT = new ConfigOptionList("sortMethodDefault", SortingMethod.ITEM_NAME).apply(GENERIC_KEY);
public static final ConfigStringList SORT_CATEGORY_ORDER = new ConfigStringList("sortCategoryOrder", SortingCategory.toImmutableList()).apply(GENERIC_KEY);
public static final ConfigLockedStringList SORT_CATEGORY_ORDER = new ConfigLockedStringList("sortCategoryOrder", SortingCategory.toImmutableList()).apply(GENERIC_KEY);

public static final ImmutableList<IConfigBase> OPTIONS = ImmutableList.of(
CARPET_CTRL_Q_CRAFTING,
Expand Down

0 comments on commit c41b943

Please sign in to comment.