whoops null pointer is no more
This commit is contained in:
parent
485a0d2f95
commit
e88dd89262
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue