Make blockstate model loader more resilient
This commit is contained in:
parent
a0f391e258
commit
9d584d13d2
|
|
@ -56,8 +56,11 @@ public abstract class BlockStateModelLoaderMixin implements IBlockStateModelLoad
|
||||||
ModernFix.LOGGER.error("Exception filtering states on {}", location, e);
|
ModernFix.LOGGER.error("Exception filtering states on {}", location, e);
|
||||||
filteredStates = null;
|
filteredStates = null;
|
||||||
}
|
}
|
||||||
this.loadBlockStateDefinitions(location.id(), optionalBlock.get().getStateDefinition());
|
try {
|
||||||
filteredStates = null;
|
this.loadBlockStateDefinitions(location.id(), optionalBlock.get().getStateDefinition());
|
||||||
|
} finally {
|
||||||
|
filteredStates = null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user