#2489: Use a default vertex format for the custom lightmap in the cube builder as well.

This commit is contained in:
Sebastian Hartte 2016-10-21 13:44:26 +02:00
parent 5b4c3cfdc7
commit 4b607d8fc8

View file

@ -84,11 +84,7 @@ public class CubeBuilder
if( renderFullBright ) if( renderFullBright )
{ {
savedFormat = format; savedFormat = format;
format = new VertexFormat( savedFormat ); format = DefaultVertexFormats.BLOCK;
if( !format.getElements().contains( DefaultVertexFormats.TEX_2S ) )
{
format.addElement( DefaultVertexFormats.TEX_2S );
}
} }
for( EnumFacing face : drawFaces ) for( EnumFacing face : drawFaces )