Skip to content

Fix for GameLoop.OnTimeChange error - #14

Open
AlanBF1992 wants to merge 1 commit into
misty-spring:mainfrom
AlanBF1992:main
Open

Fix for GameLoop.OnTimeChange error#14
AlanBF1992 wants to merge 1 commit into
misty-spring:mainfrom
AlanBF1992:main

Conversation

@AlanBF1992

Copy link
Copy Markdown

ValidSpouses is only created when Unlocked is true in ModEntry.CheckPlayer()
Fix 1: This one.
Fix 2: Change
public static List<string> ValidSpouses { get; private set; }
to
public static List<string> ValidSpouses { get; private set; } = new()
so at least it is initialized as an empty list and change ModEntry.CheckPlayer() to just remove and add items in the list.

Just one is needed, this one is shorter and skips some checks so it might be faster, no idea, didn't check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant