From 41e8b80f978e29cbe60a8007caa44568d1812210 Mon Sep 17 00:00:00 2001 From: MysterD Date: Fri, 8 Apr 2022 19:42:51 -0700 Subject: [PATCH] Fix download of levels --- src/pc/network/packets/packet_mod_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/network/packets/packet_mod_list.c b/src/pc/network/packets/packet_mod_list.c index 93bfe2d89..f2fd7149f 100644 --- a/src/pc/network/packets/packet_mod_list.c +++ b/src/pc/network/packets/packet_mod_list.c @@ -170,7 +170,7 @@ void network_receive_mod_list(struct Packet* p) { packet_read(p, &relativePathLength, sizeof(u16)); packet_read(p, file->relativePath, relativePathLength * sizeof(u8)); packet_read(p, &file->size, sizeof(u64)); - if (mod->isDirectory && !strstr(file->relativePath, "actors")) { + if (mod->isDirectory && !strstr(file->relativePath, "actors") && !strstr(file->relativePath, "levels")) { char tmp[SYS_MAX_PATH]; if (snprintf(tmp, SYS_MAX_PATH, "%s-%s", mod->relativePath, file->relativePath) >= 0) { memcpy(file->relativePath, tmp, strlen(tmp) + 1);