Fixed leaves inventory colouring

This commit is contained in:
Adubbz 2016-03-19 00:01:57 +11:00
parent 32a814b7e2
commit ca62f87f5d

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,7 +128,7 @@ 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);
@ -140,7 +138,7 @@ public class BlockBOPLeaves extends BlockLeaves implements IBOPBlock
}
}
return 0xFFFFFF;
return ColorizerFoliage.getFoliageColorBasic();
}
};
}