ensure that rb is actually created before using it

This commit is contained in:
Matthias Mann committed 2015-08-11 21:04:37 +02:00
1 parent 1a30e7a633
commit c6568b3250
1 file changed
+3 -1
@@ -35,7 +35,9 @@ public class CustomCubeRenderer {
}
public void renderBlock(IBlockAccess ba, Block par1Block, int par2, int par3, int par4, Collection<IRenderFace> renderers) {
if(rb == null) {
rb = new CustomRenderBlocks(ba);
}
rb.blockAccess = ba;
rb.setOverrideTexture(getOverrideTexture());
rb.setFaceRenderers(renderers);