Fixed leaves decay.
This commit is contained in:
parent
8a6422d8af
commit
cc2f9f8f87
3 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue