Fix additional use of backgroundExecutor in dynamic resources

This commit is contained in:
embeddedt 2023-04-24 10:49:32 -04:00
parent ee8eb02e6d
commit fdbf8d621e
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -279,7 +279,7 @@ public abstract class ModelBakeryMixin implements IExtendedModelBakery {
ModernFix.LOGGER.error("Error reading model {}: {}", fileLocation, e);
return Pair.of(fileLocation, null);
}
}, Util.backgroundExecutor()));
}, ModernFix.resourceReloadExecutor()));
}
modelFiles.clear();
CompletableFuture.allOf(modelBytes.toArray(new CompletableFuture[0])).join();