Skip to content

Commit

Permalink
Merge pull request #95 from FTBTeam/dev
Browse files Browse the repository at this point in the history
Bug fix
  • Loading branch information
desht authored Jun 21, 2024
2 parents 8ed8de9 + c95f8dc commit 71f0f8c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,10 @@ public <E> EnumConfig<E> addEnum(String id, E value, Consumer<E> setter, NameMap
*/
public <E, CV extends ConfigValue<E>> ListConfig<E, CV> addList(String id, List<E> 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());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 71f0f8c

Please sign in to comment.