Load Modded Datapacks in DatapackScreen, before world creation (#6913)

This commit is contained in:
Cyborgmas authored and GitHub committed 2020-07-20 15:56:21 -07:00
1 parent a3edfd3748
commit 24f3ef5ffe
10 files changed
+112 -39

No files matched your search

@@ -61,6 +61,11 @@ public class ResourcePackLoader
resourcePacks.addPackFinder(new LambdaFriendlyPackFinder(packFinder.apply(modResourcePacks, ModFileResourcePack::setPackInfo)));
}
public static List<String> getPackNames()
{
return modResourcePacks.values().stream().map(pack -> pack.getPackInfo().getName()).collect(Collectors.toList());
}
public static <V> Comparator<Map.Entry<String,V>> getSorter() {
List<String> order = new ArrayList<>();
order.add("vanilla");