Clean up handling of changes to IVertexConsumer (#3458)

This commit is contained in:
Ben Staddon authored and LexManos committed 2016-11-27 02:01:26 -08:00
1 parent daee86d14d
commit 86a772ee8c
3 files changed
+3 -24

No files matched your search

@@ -102,14 +102,7 @@ public class LightUtil
public static void putBakedQuad(IVertexConsumer consumer, BakedQuad quad)
{
try
{
consumer.setTexture(quad.getSprite());
}
catch(AbstractMethodError e)
{
// catch missing method errors caused by change to IVertexConsumer
}
consumer.setTexture(quad.getSprite());
consumer.setQuadOrientation(quad.getFace());
if(quad.hasTintIndex())
{
@@ -66,14 +66,7 @@ public class UnpackedBakedQuad extends BakedQuad
{
consumer.setQuadTint(getTintIndex());
}
try
{
consumer.setTexture(sprite);
}
catch(AbstractMethodError e)
{
// catch missing method errors caused by change to IVertexConsumer
}
consumer.setTexture(sprite);
consumer.setApplyDiffuseLighting(applyDiffuseLighting);
consumer.setQuadOrientation(getFace());
for(int v = 0; v < 4; v++)
@@ -44,14 +44,7 @@ public class VertexTransformer implements IVertexConsumer
public void setTexture(TextureAtlasSprite texture)
{
try
{
parent.setTexture(texture);
}
catch(AbstractMethodError e)
{
// catch missing method errors caused by change to IVertexConsumer
}
parent.setTexture(texture);
}
public void setQuadOrientation(EnumFacing orientation)