diff --git a/launcher/minecraft/mod/Resource.cpp b/launcher/minecraft/mod/Resource.cpp index 62871cbf2..2a7626953 100644 --- a/launcher/minecraft/mod/Resource.cpp +++ b/launcher/minecraft/mod/Resource.cpp @@ -161,7 +161,9 @@ bool Resource::enable(EnableAction action) path.chop(9); } else { path += ".disabled"; - path = FS::getUniqueResourceName(path); + if (QFile::exists(path)) { + path = FS::getUniqueResourceName(path); + } } if (!file.rename(path)) return false;