Skip to content

Commit

Permalink
Fix rendering sometimes crashing because of not initialized engine fo…
Browse files Browse the repository at this point in the history
…r some reason.
  • Loading branch information
bonii-xx committed Dec 26, 2014
1 parent 0f1a458 commit 8c96a11
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -47,6 +47,9 @@ public void doRender(T entity, double x, double y, double z, float p_76986_8_, f
GL11.glRotatef(f12, 0.0F, 0.0F, 1.0F);
}

if(renderManager == null || renderManager.renderEngine == null)
return;

// draw correct texture. not some weird block fragments.
renderManager.renderEngine.bindTexture(TextureMap.locationItemsTexture);
// rendering code has been optimized to be exactly at the center and without translation
Expand Down

0 comments on commit 8c96a11

Please sign in to comment.