Skip to content

Commit

Permalink
Fix item sending UI causing errors when used from transfer window
Browse files Browse the repository at this point in the history
  • Loading branch information
Lacyway committed May 21, 2024
1 parent 1ddec4b commit fabac8d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Fika.Core/UI/Patches/ItemContext_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ private static void Prefix(ItemInfoInteractionsAbstractClass<EItemInfoButton> co
return;
}

// Save as variable in case we need to add more checks later...
MenuUI menuUI = Singleton<MenuUI>.Instance;

if (menuUI.HideoutAreaTransferItemsScreen.isActiveAndEnabled)
{
return;
}

IEnumerable<Item> parentItems = item.GetAllParentItems();
if (parentItems.Any(x => x is EquipmentClass))
{
Expand Down

0 comments on commit fabac8d

Please sign in to comment.