From 3768659f965ca59beabeb2847bb12a04c58b988f Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Fri, 28 Jun 2024 17:07:54 +0200 Subject: [PATCH] Update traverse field --- Fika.Core/UI/Patches/ItemContext_Patch.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Fika.Core/UI/Patches/ItemContext_Patch.cs b/Fika.Core/UI/Patches/ItemContext_Patch.cs index cf167124..4f037a43 100644 --- a/Fika.Core/UI/Patches/ItemContext_Patch.cs +++ b/Fika.Core/UI/Patches/ItemContext_Patch.cs @@ -32,7 +32,8 @@ private static void Prefix(ItemInfoInteractionsAbstractClass co return; } - ItemContextAbstractClass itemContext = Traverse.Create(contextInteractions).Field("gclass2829_0").Value; + // Check for GClass increments + ItemContextAbstractClass itemContext = Traverse.Create(contextInteractions).Field("itemContextAbstractClass").Value; if (itemContext.ViewType == EItemViewType.Inventory) { if (Singleton.Instantiated && Singleton.Instance is not HideoutGameWorld)