mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Allow item models to use formats other than ITEM (#4273)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user