@Override
    public int[] getBiomeData(int px, int pz, int sx, int sz)
    {
        int[] da = a.getBiomeData(px, pz, sx, sz);
        int[] db = b.getBiomeData(px, pz, sx, sz);
        
        for(int i = 0; i < sx*sz; i++)
        {
            if(sa.contains(da[i]) && sb.contains(db[i]))
            {
                if(res == -1)
                    da[i] = db[i];
                else
                    da[i] = res;
            }
        }
        
        return da;
    }