Skip to content

Commit

Permalink
cleanup duplicate capsule check in config.py
Browse files Browse the repository at this point in the history
  • Loading branch information
th3w1zard1 committed Nov 7, 2023
1 parent 7f6eb5a commit 005ae9d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pykotor/tslpatcher/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,11 +327,10 @@ def install(self) -> None:
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:
self.handle_override_type(patch)

patched_bytes_data = patch.apply(data_to_patch_bytes, memory, self.log, self.game())
if capsule is not None:
self.handle_override_type(patch)
capsule.add(*ResourceIdentifier.from_path(patch.saveas), patched_bytes_data)
else:
BinaryWriter.dump(output_container_path / patch.saveas, patched_bytes_data)
Expand Down

0 comments on commit 005ae9d

Please sign in to comment.