Ignore exceptions while building blockstate cache

This commit is contained in:
embeddedt 2023-02-20 11:25:22 -05:00
parent 5cd80ebd27
commit 02230095b7
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -74,7 +74,12 @@ public class BlockStateCacheHandler {
private void rebuildCache() {
Iterator<BlockState> stateIterator = blockStateList.iterator();
while(!stopRebuild && stateIterator.hasNext()) {
stateIterator.next().initCache();
BlockState state = stateIterator.next();
try {
state.initCache();
} catch(Exception e) {
ModernFix.LOGGER.warn("Exception encountered while initializing cache", e);
}
}
}