From e9b815fcac9e56ee08793508449acbf8012c0940 Mon Sep 17 00:00:00 2001 From: bryanthaboi Date: Thu, 27 Aug 2026 08:39:06 -0400 Subject: [PATCH] Update RomImporter.lua --- src/import/RomImporter.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/import/RomImporter.lua b/src/import/RomImporter.lua index 1e15166b..6df2593f 100644 --- a/src/import/RomImporter.lua +++ b/src/import/RomImporter.lua @@ -2296,8 +2296,8 @@ function RomImporter:_importRequiredSource(modId, importId, source, confirmed) } return nil end - if type(size) == "number" and size > RequiredImports.LARGE_WARN_BYTES - and spec.format ~= "n64" then + if spec.format ~= "n64" and (size == nil + or size > RequiredImports.LARGE_WARN_BYTES) then local ok, result = streamRequiredImport(manifest, importId, source) if ok then self.requiredImportNotice = nil