From 0e7bbd2da6901a247285765967fdb8d00c438562 Mon Sep 17 00:00:00 2001 From: MysterD Date: Tue, 11 Apr 2023 20:07:09 -0700 Subject: [PATCH] Add single-lua-file mods to mod cache --- src/pc/mods/mod.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/pc/mods/mod.c b/src/pc/mods/mod.c index 1ef68260f..f672ad857 100644 --- a/src/pc/mods/mod.c +++ b/src/pc/mods/mod.c @@ -517,12 +517,10 @@ bool mod_load(struct Mods* mods, char* basePath, char* modName) { // print LOG_INFO(" %s", mod->name); - if (isDirectory) { - for (int i = 0; i < mod->fileCount; i++) { - struct ModFile* file = &mod->files[i]; - mod_cache_add(mod, file, true); - LOG_INFO(" - %s", file->relativePath); - } + for (int i = 0; i < mod->fileCount; i++) { + struct ModFile* file = &mod->files[i]; + mod_cache_add(mod, file, true); + LOG_INFO(" - %s", file->relativePath); } return true;