Remove emissive items hook, add small utility for bakedquad lighting

This commit is contained in:
tterrag committed 2020-01-20 22:44:26 -05:00
1 parent 1936eb1f36
commit 380366e25f
5 files changed
+25 -186

No files matched your search

@@ -247,6 +247,20 @@ public class LightUtil
}
}
}
public static int getLightOffset(int v)
{
return (v * 8) + 6;
}
public static void setLightData(BakedQuad q, int light)
{
int[] data = q.getVertexData();
for (int i = 0; i < 4; i++)
{
data[getLightOffset(i)] = light;
}
}
private static final class ItemPipeline
{