well here is the line from the file
resource_index = resource_autoplace.resource_indexes[k],
I don't know where the call for the updates file is done but here is an idea
if you place it in a structure that checks what chuck is generating the ore like for the uranium then do the same for oil because you have the framework for the uranium in place right...