public BiomeGenBase getBiomeGenForCoords(int par1, int par2)
    {
        if (this.blockExists(par1, 0, par2))
        {
            Chunk var3 = this.getChunkFromBlockCoords(par1, par2);

            if (var3 != null)
            {
                return var3.func_48490_a(par1 & 15, par2 & 15, this.worldProvider.worldChunkMgr);
            }
        }

        return this.worldProvider.worldChunkMgr.getBiomeGenAt(par1, par2);
    }