prevent meditation softlock

This commit is contained in:
JohnCorby 2022-10-06 17:52:22 -07:00
parent dcc51c3da6
commit 42408a6377

View File

@ -36,6 +36,11 @@ internal class TimePatches : QSBPatch
is OWTime.PauseType.Initializing
or OWTime.PauseType.Streaming
or OWTime.PauseType.Loading;
[HarmonyPostfix]
[HarmonyPatch(typeof(SubmitActionSkipToNextLoop), nameof(SubmitActionSkipToNextLoop.AdvanceToNewTimeLoop))]
public static void PreventMeditationSoftlock()
=> OWInput.ChangeInputMode(InputMode.Character);
}
internal class ClientTimePatches : QSBPatch