Ok, so I'm updating my mod to 1.8, and I have a custom rendered block that I want to face the player when placed down. The code I was using worked in 1.7, but in 1.8 it has a couple errors that I can't seem to fix. It really boils down to two errors in the block class. 
  
Here is where the error is located: 
 
public void onBlockPlacedBy(World world, int x, int y, int z, EntityLivingBase entityLiving, ItemStack itemStack) {
    	 int facing = MathHelper.floor_double((double) ((entityLiving.rotationYaw * 4F) / 360F) + 0.5D) & 3;
    	 TileEntity te = world.getTileEntity(x, y, z);
    	 if (te != null && te instanceof TileEntityNameHere) {
    	 TileEntityNameHere facedte = (TileEntityNameHere) te;
    	 facedte.setFacing(facing);
    	 world.markBlockForUpdate(x, y, z);
    	 }
    }
 
  
More specifically, the two errors: 
 
TileEntity te = world.getTileEntity(x, y, z);
 
  
 
world.markBlockForUpdate(x, y, z);
  
  
If anyone knows of a fix for this, that would be great!