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 @Override
public IBlockColor getBlockColor() public IBlockColor getBlockColor()
{ {
final IProperty variantProp = this.variantProperty;
return new IBlockColor() return new IBlockColor()
{ {
@Override @Override
@ -130,7 +128,7 @@ public class BlockBOPLeaves extends BlockLeaves implements IBOPBlock
{ {
if ( world != null && pos != null) if ( world != null && pos != null)
{ {
switch (getColoringType((BOPTrees) state.getValue(variantProp))) switch (getColoringType((BOPTrees) state.getValue(BlockBOPLeaves.this.variantProperty)))
{ {
case TINTED: case TINTED:
return BiomeColorHelper.getFoliageColorAtPos(world, pos); return BiomeColorHelper.getFoliageColorAtPos(world, pos);
@ -140,7 +138,7 @@ public class BlockBOPLeaves extends BlockLeaves implements IBOPBlock
} }
} }
return 0xFFFFFF; return ColorizerFoliage.getFoliageColorBasic();
} }
}; };
} }