From b0a6788ac462a7a9e4cc15bf475761f7bc55ee24 Mon Sep 17 00:00:00 2001 From: MauveCloud Date: Sun, 12 Mar 2017 12:49:54 -0700 Subject: [PATCH] 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. --- src/main/java/gregtech/common/render/RenderBlocks.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/render/RenderBlocks.java b/src/main/java/gregtech/common/render/RenderBlocks.java index 016f45be..f103844a 100644 --- a/src/main/java/gregtech/common/render/RenderBlocks.java +++ b/src/main/java/gregtech/common/render/RenderBlocks.java @@ -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);