Ignore exceptions while building blockstate cache
This commit is contained in:
parent
5cd80ebd27
commit
02230095b7
|
|
@ -74,7 +74,12 @@ public class BlockStateCacheHandler {
|
||||||
private void rebuildCache() {
|
private void rebuildCache() {
|
||||||
Iterator<BlockState> stateIterator = blockStateList.iterator();
|
Iterator<BlockState> stateIterator = blockStateList.iterator();
|
||||||
while(!stopRebuild && stateIterator.hasNext()) {
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user