If you want to swap music, do that in your personal data directory. That won't be touched by the updater. In general, it is strongly advised that you do not touch the install directory.
EDIT: To clarify some more: read about pk3's. You want to have the music file under the same path as the original, but in your data directory. You can do this using a pk3dir or a pk3, or no pk3 at all and directly store it under the path you want to override, in your data directory.
For example, if you want to override music/foo.ogg, you have three options:
EDIT: To clarify some more: read about pk3's. You want to have the music file under the same path as the original, but in your data directory. You can do this using a pk3dir or a pk3, or no pk3 at all and directly store it under the path you want to override, in your data directory.
For example, if you want to override music/foo.ogg, you have three options:
- Create a zip archive called zzz_blablablamymusic.pk3 containing music/foo.ogg, put it in your personal data directory
- Create a directory called zzz_blablablamymusic.pk3dir containing music/foo.ogg, put it in your personal directory
- Put foo.ogg in your personal directory: ~/.xonotic/data/music/foo.ogg if you're on linux for example