mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fix rendering crashes
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user