Skip to content

Commit

Permalink
Return mutable listener list from sort method
Browse files Browse the repository at this point in the history
  • Loading branch information
Su5eD committed Feb 21, 2024
1 parent 30ef839 commit cefbb70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ public static List<ResourceReloader> sort(ResourceType type, List<ResourceReload
if (instance != null) {
List<ResourceReloader> mutable = new ArrayList<>(listeners);
instance.sort(mutable);
return Collections.unmodifiableList(mutable);
// FFAPI: Return mutable list to match input type
// See https://github.com/Sinytra/Connector/issues/641
return mutable;
}

return listeners;
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ fabric-client-tags-api-v1-version=1.1.2
loom.platform=forge
forge_version=1.20.1-47.2.6
pack_format=15
forgified_version=1.11.1
forgified_version=1.11.2
forge_fabric_loader_version=2.6.0+0.15.0+1.20.1

0 comments on commit cefbb70

Please sign in to comment.