Fixed piston rendering (WorldRenderer offset wasn't applied); fixed TESR being registered too early in one of the debug mods.

This commit is contained in:
RainWarrior committed 2015-10-27 19:02:22 +03:00
1 parent ef2bcb056d
commit 6b10b41b02
3 files changed
+15 -11

No files matched your search

@@ -141,9 +141,9 @@ public class VertexLighterFlat extends QuadGatheringTransformer
case POSITION:
float[] pos = new float[4];
System.arraycopy(position[v], 0, pos, 0, position[v].length);
pos[0] += (blockInfo.getBlockPos().getX() & 0xF);
pos[1] += (blockInfo.getBlockPos().getY() & 0xF);
pos[2] += (blockInfo.getBlockPos().getZ() & 0xF);
pos[0] += blockInfo.getBlockPos().getX();
pos[1] += blockInfo.getBlockPos().getY();
pos[2] += blockInfo.getBlockPos().getZ();
parent.put(e, pos);
break;
case NORMAL: if(normalIndex != -1)
@@ -36,7 +36,7 @@ public class WorldRendererConsumer implements IVertexConsumer
if(v == 4)
{
renderer.addVertexData(quadData);
renderer.checkAndGrow();
renderer.putPosition(0, 0, 0);
Arrays.fill(quadData, 0);
v = 0;
}