summaryrefslogtreecommitdiffstats
path: root/logic
diff options
context:
space:
mode:
Diffstat (limited to 'logic')
-rw-r--r--logic/LegacyUpdate.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/LegacyUpdate.cpp b/logic/LegacyUpdate.cpp
index fb9dcf2b..cb3598a7 100644
--- a/logic/LegacyUpdate.cpp
+++ b/logic/LegacyUpdate.cpp
@@ -423,6 +423,11 @@ void LegacyUpdate::ModTheJar()
for (int i = modList->size() - 1; i >= 0; i--)
{
auto &mod = modList->operator[](i);
+
+ // do not merge disabled mods.
+ if(!mod.enabled())
+ continue;
+
if (mod.type() == Mod::MOD_ZIPFILE)
{
if (!MergeZipFiles(&zipOut, mod.filename(), addedFiles, LegacyUpdate::KeepMetainf))