Uncommented canBlockStay

This commit is contained in:
Adubbz 2013-05-07 18:27:51 +10:00
parent 043e749df4
commit 65ff312ae0
2 changed files with 4 additions and 4 deletions

View file

@ -177,7 +177,7 @@ public class BlockBOPFlower extends BlockFlower
return this.canPlaceBlockOnSide(world, x, y, z, side); return this.canPlaceBlockOnSide(world, x, y, z, side);
} }
/*@Override @Override
public boolean canBlockStay(World world, int x, int y, int z) public boolean canBlockStay(World world, int x, int y, int z)
{ {
if (world.getBlockId(x, y, z) != this.blockID) if (world.getBlockId(x, y, z) != this.blockID)
@ -186,7 +186,7 @@ public class BlockBOPFlower extends BlockFlower
else else
return (world.getFullBlockLightValue(x, y, z) >= 8 || world.canBlockSeeTheSky(x, y, z)) return (world.getFullBlockLightValue(x, y, z) >= 8 || world.canBlockSeeTheSky(x, y, z))
&& this.canThisPlantGrowOnThisBlockID(world.getBlockId(x, y - 1, z), world.getBlockMetadata(x, y, z)); && this.canThisPlantGrowOnThisBlockID(world.getBlockId(x, y - 1, z), world.getBlockMetadata(x, y, z));
}*/ }
@Override @Override
public int damageDropped(int meta) public int damageDropped(int meta)

View file

@ -162,7 +162,7 @@ public class BlockBOPPlant extends BlockFlower implements IShearable
return this.canPlaceBlockOnSide(world, x, y, z, side); return this.canPlaceBlockOnSide(world, x, y, z, side);
} }
/*@Override @Override
public boolean canBlockStay(World world, int x, int y, int z) public boolean canBlockStay(World world, int x, int y, int z)
{ {
if (world.getBlockId(x, y, z) != this.blockID) if (world.getBlockId(x, y, z) != this.blockID)
@ -171,7 +171,7 @@ public class BlockBOPPlant extends BlockFlower implements IShearable
else else
return (world.getFullBlockLightValue(x, y, z) >= 8 || world.canBlockSeeTheSky(x, y, z)) return (world.getFullBlockLightValue(x, y, z) >= 8 || world.canBlockSeeTheSky(x, y, z))
&& this.canThisPlantGrowOnThisBlockID(world.getBlockId(x, y - 1, z), world.getBlockMetadata(x, y, z)); && this.canThisPlantGrowOnThisBlockID(world.getBlockId(x, y - 1, z), world.getBlockMetadata(x, y, z));
}*/ }
@Override @Override
public void onNeighborBlockChange(World world, int x, int y, int z, int neighborID) public void onNeighborBlockChange(World world, int x, int y, int z, int neighborID)