Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
fix: use correct var to compare equality
Browse files Browse the repository at this point in the history
  • Loading branch information
stiefeljackal committed Jan 6, 2023
1 parent 630106e commit 0033a28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NeosAnimJImportFix/Patches/AnimatorComponentPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ static bool Prefix(ref Task __result, ref Animator __instance, Slot root)
private static IField GetComponentField(Slot slot, string componentTypeName, string componentFieldName)
{
var components = slot.GetComponents<Component>((c) =>
c.WorkerTypeName == componentFieldName ||
c.WorkerType.GetNiceName() == componentFieldName ||
c.WorkerTypeName == componentTypeName ||
c.WorkerType.GetNiceName() == componentTypeName ||
COMPONENT_FULLNAME_METADATA_REGEX.Replace(c.WorkerTypeName, "") == componentTypeName
).OrderBy(c => c.UpdateOrder).ToArray();
Component foundComponent = null;
Expand Down

0 comments on commit 0033a28

Please sign in to comment.