mirror of
https://github.com/GTNewHorizons/EnderCore.git
synced 2026-11-21 12:32:15 +00:00
ensure that rb is actually created before using it
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user