Revert unfinished change

This commit is contained in:
embeddedt 2023-02-08 13:58:07 -05:00
parent 3d7422496e
commit ae796f2386

View File

@ -69,13 +69,16 @@ public abstract class ModelBakeryMixin {
this.bakedCache = new ConcurrentHashMap<>(); this.bakedCache = new ConcurrentHashMap<>();
this.modelsToBakeParallel = this.topLevelModels.keySet().stream() this.modelsToBakeParallel = this.topLevelModels.keySet().stream()
.collect(Collectors.partitioningBy(location -> { .collect(Collectors.partitioningBy(location -> {
IUnbakedModel unbakedModel = this.unbakedCache.get(location); //IUnbakedModel unbakedModel = this.unbakedCache.get(location);
return false;
/*
if(unbakedModel == null) if(unbakedModel == null)
return false; return false;
else else
return this.canBakeParallel(unbakedModel); return this.canBakeParallel(unbakedModel);
*/
})); }));
List<ResourceLocation> parallelModels = this.modelsToBakeParallel.get(true); List<ResourceLocation> parallelModels = this.modelsToBakeParallel.get(false);
List<CompletableFuture<Void>> futures = new ArrayList<>(); List<CompletableFuture<Void>> futures = new ArrayList<>();
parallelModels.forEach((p_229350_1_) -> { parallelModels.forEach((p_229350_1_) -> {
IBakedModel ibakedmodel = null; IBakedModel ibakedmodel = null;