diff --git a/pykotor/tslpatcher/config.py b/pykotor/tslpatcher/config.py index 42e0aef2c..1327b9671 100644 --- a/pykotor/tslpatcher/config.py +++ b/pykotor/tslpatcher/config.py @@ -324,7 +324,7 @@ def install(self) -> None: if not self.should_patch(patch, exists, capsule): continue data_to_patch_bytes = self.lookup_resource(patch, output_container_path, exists, capsule) - if not data_to_patch_bytes: + if data_to_patch_bytes is None: # check None as sometimes mods will installlist empty files. self.log.add_error(f"Could not locate resource to {patch.action.lower().strip()}: '{patch.sourcefile}'") continue if capsule: