public boolean chunkExists(int par1, int par2)
    {
        if (!this.canChunkExist(par1, par2))
        {
            return false;
        }
        else if (par1 == this.lastQueriedChunkXPos && par2 == this.lastQueriedChunkZPosition && this.lastQueriedChunk != null)
        {
            return true;
        }
        else
        {
            int var3 = par1 & 31;
            int var4 = par2 & 31;
            int var5 = var3 + var4 * 32;
            return this.chunks[var5] != null && (this.chunks[var5] == this.blankChunk || this.chunks[var5].isAtLocation(par1, par2));
        }
    }