Skip to content

Commit

Permalink
fixed relationship save compat
Browse files Browse the repository at this point in the history
  • Loading branch information
KiloOscarSix committed Oct 2, 2023
1 parent 0af7aa2 commit 013fd37
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CharacterService_ren.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def set_relationship(
if not hasattr(target, "relationships"):
target.relationships = {}

if isinstance(target.relationships, set):
target.relationships = {r: Relationship.FWB for r in target.relationships}

if (
character.relationships.setdefault(target, Relationship.FRIEND)
== relationship
Expand Down

0 comments on commit 013fd37

Please sign in to comment.