Fixed leaves inventory colouring
This commit is contained in:
parent
32a814b7e2
commit
ca62f87f5d
|
@ -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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue