Fixed leaves inventory colouring
This commit is contained in:
parent
32a814b7e2
commit
ca62f87f5d
1 changed files with 3 additions and 5 deletions
|
@ -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();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue