Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/20.1/forge' into 19.2/forge
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed May 3, 2024
2 parents d9542fc + 7731565 commit 63641de
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ private void epsilonizeBlockModel(ResourceLocation pLocation, CallbackInfoReturn
if(pLocation.getPath().startsWith("block/")) {
BlockModel bm = cir.getReturnValue();
if(bm != null) {
for(BlockElement vanillaElement : bm.getElements()) {
((EpsilonizableBlockElement)vanillaElement).embeddium$epsilonize();
try {
for(BlockElement vanillaElement : bm.getElements()) {
((EpsilonizableBlockElement)vanillaElement).embeddium$epsilonize();
}
} catch(Throwable ignored) {
// Epsilonizing isn't critical, make sure it doesn't prevent resource reload
}
}
}
Expand Down

0 comments on commit 63641de

Please sign in to comment.