Fixed leaves decay.

This commit is contained in:
Amnet 2013-04-30 18:08:42 +02:00
parent 8a6422d8af
commit cc2f9f8f87
3 changed files with 4 additions and 4 deletions

View file

@ -107,10 +107,10 @@ public class BlockBOPAppleLeaves extends BlockLeavesBase implements IShearable
int meta = world.getBlockMetadata(x, y, z); int meta = world.getBlockMetadata(x, y, z);
if (random.nextInt(5) == 0) if (random.nextInt(5) == 0)
if ((meta & 4) < 3) if ((meta & 3) < 3)
world.setBlock(x, y, z, blockID, ++meta, 3); world.setBlock(x, y, z, blockID, ++meta, 3);
if ((meta & 8) != 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;

View file

@ -153,7 +153,7 @@ public class BlockBOPColorizedLeaves extends BlockLeavesBase implements IShearab
int meta = world.getBlockMetadata(x, y, z); int meta = world.getBlockMetadata(x, y, z);
if ((meta & 8) != 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;

View file

@ -115,7 +115,7 @@ public class BlockBOPLeaves extends BlockLeavesBase implements IShearable
int meta = world.getBlockMetadata(x, y, z); int meta = world.getBlockMetadata(x, y, z);
if ((meta & 8) != 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;