Fix crash with Charm

This commit is contained in:
embeddedt 2023-05-05 09:46:49 -04:00
parent 385d12e159
commit 3f82c7459a
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -75,7 +75,9 @@ public class EntityRendererMap implements Map<EntityType<?>, EntityRenderer<?>>
if(renderer == null)
throw new AssertionError("Returned entity renderer should never be null");
return renderer;
} catch(ExecutionException e) {
} catch (IllegalStateException e) {
return null; /* emulate value not being present if recursive load occurs */
} catch (ExecutionException e) {
throw new RuntimeException(e);
}
}