Skip to content

Commit

Permalink
small adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Eddio0141 committed Jan 8, 2025
1 parent 8951d2a commit 069a35e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public void NewCoroutine(MonoBehaviour instance, IEnumerator routine)
AccessTools.PropertyGetter(routineType, $"{typeof(IEnumerator).FullName}.{nameof(IEnumerator.Current)}") ??
AccessTools.PropertyGetter(routineType, nameof(IEnumerator.Current));
var moveNext =
AccessTools.Method(routineType, $"{typeof(IEnumerator).FullName}.{nameof(IEnumerator.MoveNext)}") ??
AccessTools.Method(routineType, nameof(IEnumerator.MoveNext));
AccessTools.Method(routineType, nameof(IEnumerator.MoveNext)) ??
AccessTools.Method(routineType, $"{typeof(IEnumerator).FullName}.{nameof(IEnumerator.MoveNext)}");
_harmony.Harmony.Patch(current, postfix: CurrentPostfix);
_harmony.Harmony.Patch(moveNext, MoveNextPrefix);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ public void OnLastUpdateActual()
{
foreach (var loadData in _ops)
{
loadData.Load();
_pendingLoadCallbacks.Add(loadData);
LoadOp(loadData);
}

_ops.Clear();
Expand Down

0 comments on commit 069a35e

Please sign in to comment.