Fix rendering crashes

This commit is contained in:
aidancbrady committed 2016-07-23 22:56:50 -04:00
1 parent fe2d34d888
commit b62a858a4a
6 files changed
+8 -10

No files matched your search

@@ -225,9 +225,14 @@ public class MekanismRenderer
return map.containsKey(fluid) ? map.get(fluid) : missingIcon;
}
public static boolean isDrawing(Tessellator tessellator)
public static boolean isDrawing(Tessellator tess)
{
return (boolean)ReflectionUtils.getPrivateValue(tessellator.getBuffer(), VertexBuffer.class, ObfuscatedNames.VertexBuffer_isDrawing);
return isDrawing(tess.getBuffer());
}
public static boolean isDrawing(VertexBuffer buffer)
{
return (boolean)ReflectionUtils.getPrivateValue(buffer, VertexBuffer.class, ObfuscatedNames.VertexBuffer_isDrawing);
}
public static class Model3D