Slightly less-hacky workaround for #940

I'm a bit confused that this change works, though, considering the line
number of loadCuboidFace listed in the stack trace.
This commit is contained in:
MauveCloud 2017-03-11 20:45:05 -08:00
parent 9fba3e22a9
commit ca11db3ff1

View file

@ -102,7 +102,9 @@ public class RenderBlocks implements ICCBlockRenderer {
public static void renderFace(CCRenderState state, EnumFacing side, IVertexOperation... ops)
{
face.loadCuboidFace(bounds, side.ordinal());
if (bounds != null) {
face.loadCuboidFace(bounds, side.ordinal());
}
state.setPipeline(face, 0, face.verts.length, ops);
state.render();
}