Fixed leaves inventory colouring

This commit is contained in:
Adubbz 2016-03-19 00:01:57 +11:00
parent 32a814b7e2
commit ca62f87f5d
1 changed files with 3 additions and 5 deletions

View File

@ -121,8 +121,6 @@ public class BlockBOPLeaves extends BlockLeaves implements IBOPBlock
@Override
public IBlockColor getBlockColor()
{
final IProperty variantProp = this.variantProperty;
return new IBlockColor()
{
@Override
@ -130,17 +128,17 @@ public class BlockBOPLeaves extends BlockLeaves implements IBOPBlock
{
if ( world != null && pos != null)
{
switch (getColoringType((BOPTrees) state.getValue(variantProp)))
switch (getColoringType((BOPTrees) state.getValue(BlockBOPLeaves.this.variantProperty)))
{
case TINTED:
return BiomeColorHelper.getFoliageColorAtPos(world, pos);
case OVERLAY:
if (tintIndex == 0)
if (tintIndex == 0)
return BiomeColorHelper.getFoliageColorAtPos(world, pos);
}
}
return 0xFFFFFF;
return ColorizerFoliage.getFoliageColorBasic();
}
};
}