From ffd2edcd0994e77f26097b7aa8b1b0cc0671e12d Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Fri, 21 Jun 2024 17:25:09 +0100 Subject: [PATCH 1/2] fix: incorrect logic in config list value updating retainAll() doesn't work here! https://github.com/FTBTeam/FTB-Mods-Issues/issues/1231 --- .../java/dev/ftb/mods/ftblibrary/config/ConfigGroup.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/dev/ftb/mods/ftblibrary/config/ConfigGroup.java b/common/src/main/java/dev/ftb/mods/ftblibrary/config/ConfigGroup.java index eb3c95f1..8ff640ed 100644 --- a/common/src/main/java/dev/ftb/mods/ftblibrary/config/ConfigGroup.java +++ b/common/src/main/java/dev/ftb/mods/ftblibrary/config/ConfigGroup.java @@ -276,7 +276,10 @@ public EnumConfig addEnum(String id, E value, Consumer setter, NameMap */ public > ListConfig addList(String id, List value, CV type, E def) { type.setDefaultValue(def); - return add(id, new ListConfig<>(type), value, value::retainAll, Collections.emptyList()); + return add(id, new ListConfig<>(type), value, c -> { + value.clear(); + value.addAll(c); + }, Collections.emptyList()); } /** From c95f8dc30a5e84d96ca5edebf153eebc719f77d6 Mon Sep 17 00:00:00 2001 From: Des Herriott Date: Fri, 21 Jun 2024 17:25:28 +0100 Subject: [PATCH 2/2] build: version -> 2001.1.1 --- gradle.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle.properties b/gradle.properties index 354ebd40..be95d386 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,7 +4,7 @@ org.gradle.daemon=false # Mod mod_id=ftblibrary readable_name=FTB Library -mod_version=2100.1.0 +mod_version=2100.1.1 mod_author=FTB Team # Maven