Fixed leaves.
This commit is contained in:
parent
019a874cc3
commit
0b01c7af6c
4 changed files with 6 additions and 6 deletions
|
@ -191,7 +191,7 @@ public class BlockBOPColorizedLeaves extends BlockLeavesBase implements IShearab
|
||||||
|
|
||||||
int meta = world.getBlockMetadata(x, y, z);
|
int meta = world.getBlockMetadata(x, y, z);
|
||||||
|
|
||||||
if ((meta & 4) != 0/* && (meta & 4) == 0*/)
|
if ((meta & 8) != 0 && (meta & 4) == 0)
|
||||||
{
|
{
|
||||||
byte b0 = 4;
|
byte b0 = 4;
|
||||||
int i1 = b0 + 1;
|
int i1 = b0 + 1;
|
||||||
|
@ -371,7 +371,7 @@ public class BlockBOPColorizedLeaves extends BlockLeavesBase implements IShearab
|
||||||
@Override
|
@Override
|
||||||
public void beginLeavesDecay(World world, int x, int y, int z)
|
public void beginLeavesDecay(World world, int x, int y, int z)
|
||||||
{
|
{
|
||||||
world.setBlockMetadataWithNotify(x, y, z, world.getBlockMetadata(x, y, z) | 4, 4);
|
world.setBlockMetadataWithNotify(x, y, z, world.getBlockMetadata(x, y, z) | 8, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -190,7 +190,7 @@ public class BlockBOPLeaves extends BlockLeavesBase implements IShearable
|
||||||
|
|
||||||
int meta = world.getBlockMetadata(x, y, z);
|
int meta = world.getBlockMetadata(x, y, z);
|
||||||
|
|
||||||
if ((meta & 4) != 0/* && (meta & 4) == 0*/)
|
if ((meta & 8) != 0 && (meta & 4) == 0)
|
||||||
{
|
{
|
||||||
byte b0 = 4;
|
byte b0 = 4;
|
||||||
int i1 = b0 + 1;
|
int i1 = b0 + 1;
|
||||||
|
@ -418,7 +418,7 @@ public class BlockBOPLeaves extends BlockLeavesBase implements IShearable
|
||||||
@Override
|
@Override
|
||||||
public void beginLeavesDecay(World world, int x, int y, int z)
|
public void beginLeavesDecay(World world, int x, int y, int z)
|
||||||
{
|
{
|
||||||
world.setBlockMetadataWithNotify(x, y, z, world.getBlockMetadata(x, y, z) | 4, 4);
|
world.setBlockMetadataWithNotify(x, y, z, world.getBlockMetadata(x, y, z) | 8, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class ItemBlockColorizedLeaves extends ItemBlock
|
||||||
@Override
|
@Override
|
||||||
public int getMetadata(int meta)
|
public int getMetadata(int meta)
|
||||||
{
|
{
|
||||||
return meta;
|
return meta | 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -17,7 +17,7 @@ public class ItemBlockLeaves extends ItemBlock
|
||||||
@Override
|
@Override
|
||||||
public int getMetadata(int meta)
|
public int getMetadata(int meta)
|
||||||
{
|
{
|
||||||
return meta;
|
return meta | 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue