Improved workaround for #940

Seems to hold up a little better now.  Still haven't figured out what
could be causing only bounds.max to end up null.
This commit is contained in:
MauveCloud 2017-03-12 12:49:54 -07:00
parent ca11db3ff1
commit b0a6788ac4

View file

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