From ca11db3ff17c4c0784901a12536f73e0cd2afed3 Mon Sep 17 00:00:00 2001 From: MauveCloud Date: Sat, 11 Mar 2017 20:45:05 -0800 Subject: [PATCH] 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. --- src/main/java/gregtech/common/render/RenderBlocks.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/gregtech/common/render/RenderBlocks.java b/src/main/java/gregtech/common/render/RenderBlocks.java index ed8fcc8c..016f45be 100644 --- a/src/main/java/gregtech/common/render/RenderBlocks.java +++ b/src/main/java/gregtech/common/render/RenderBlocks.java @@ -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(); }