Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public static Collection<ItemStack> arrange(ResourceLocation tabId, Collection<I

arranged.addAll(original.subList(originalIndex, original.size()));
PLACEMENTS.put(tabId, List.copyOf(placedSections));
return List.copyOf(arranged);
return arranged;
}

public static List<PlacedSection> placedSections(ResourceLocation tabId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static Collection<ItemStack> fold(Collection<ItemStack> items) {
if (group.isEnabled() && group.presentIn(original)) eligible.add(group);
}
}
if (eligible.isEmpty()) return original;
if (eligible.isEmpty()) return new ArrayList<>(original);

Set<VariantGroup> emitted = new HashSet<>();
List<ItemStack> folded = new ArrayList<>(original.size());
Expand All @@ -161,7 +161,7 @@ public static Collection<ItemStack> fold(Collection<ItemStack> items) {
folded.add(group.source());
}
}
return List.copyOf(folded);
return folded;
}

private static Optional<List<ItemStack>> normalize(List<ItemStack> variants) {
Expand Down
Loading