Fixed balloon colors, fixed transmitter block render, fixed visual disconnect of transmitters on world load

This commit is contained in:
aidancbrady committed 2016-05-26 13:19:08 -04:00
1 parent 2c39f6a689
commit 30447e40e2
8 files changed
+28 -16

No files matched your search

@@ -320,10 +320,10 @@ public class MekanismRenderer
for(int i = 0; i < 4; i++)
{
int nextIndex = (i+amount)%4;
int j = quad.getFormat().getIntegerSize() * i;
int quadSize = quad.getFormat().getIntegerSize();
int uvIndex = quad.getFormat().getUvOffsetById(0) / 4;
vertices[j + uvIndex] = quad.getVertexData()[7*nextIndex + uvIndex];
vertices[j + uvIndex + 1] = quad.getVertexData()[7*nextIndex + uvIndex];
vertices[quadSize*i + uvIndex] = quad.getVertexData()[quadSize*nextIndex + uvIndex];
vertices[quadSize*i + uvIndex + 1] = quad.getVertexData()[quadSize*nextIndex + uvIndex + 1];
}
return new BakedQuad(vertices, quad.getTintIndex(), quad.getFace(), quad.getSprite(), quad.shouldApplyDiffuseLighting(), quad.getFormat());