ModListAnims: improve code