Skip to content

Commit

Permalink
Update traverse field
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed Jun 28, 2024
1 parent dd17882 commit 3768659
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Fika.Core/UI/Patches/ItemContext_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ private static void Prefix(ItemInfoInteractionsAbstractClass<EItemInfoButton> co
return;
}

ItemContextAbstractClass itemContext = Traverse.Create(contextInteractions).Field<ItemContextAbstractClass>("gclass2829_0").Value;
// Check for GClass increments
ItemContextAbstractClass itemContext = Traverse.Create(contextInteractions).Field<ItemContextAbstractClass>("itemContextAbstractClass").Value;
if (itemContext.ViewType == EItemViewType.Inventory)
{
if (Singleton<GameWorld>.Instantiated && Singleton<GameWorld>.Instance is not HideoutGameWorld)
Expand Down

0 comments on commit 3768659

Please sign in to comment.