Allow item models to use formats other than ITEM (#4273)

This commit is contained in:
tterrag authored and LexManos committed 2017-10-02 16:17:35 -07:00
1 parent 071664d95f
commit 6956df4ff2
1 file changed
+9 -2
@@ -297,8 +297,15 @@ public class LightUtil
public static void renderQuadColor(BufferBuilder wr, BakedQuad quad, int auxColor)
{
wr.addVertexData(quad.getVertexData());
ForgeHooksClient.putQuadColor(wr, quad, auxColor);
if (quad.getFormat().equals(wr.getVertexFormat()))
{
wr.addVertexData(quad.getVertexData());
ForgeHooksClient.putQuadColor(wr, quad, auxColor);
}
else
{
renderQuadColorSlow(wr, quad, auxColor);
}
}
public static class ItemConsumer extends VertexTransformer