whoops null pointer is no more

This commit is contained in:
JozsefA 2021-02-12 19:33:13 -08:00
parent 485a0d2f95
commit e88dd89262

View file

@ -48,6 +48,8 @@ public class ContraptionRenderDispatcher {
for (WeakReference<AbstractContraptionEntity> weakReference : map.values()) {
AbstractContraptionEntity entity = weakReference.get();
if (entity == null) continue;
EntityRendererManager renderManager = Minecraft.getInstance().getRenderManager();
EntityRenderer<?> renderer = renderManager.getRenderer(entity);