diff --git a/Fika.Core/UI/Patches/ItemContext_Patch.cs b/Fika.Core/UI/Patches/ItemContext_Patch.cs index 522c8428..e37b58b4 100644 --- a/Fika.Core/UI/Patches/ItemContext_Patch.cs +++ b/Fika.Core/UI/Patches/ItemContext_Patch.cs @@ -62,6 +62,11 @@ private static void Prefix(ItemInfoInteractionsAbstractClass co return; } + if (item.PinLockState is EItemPinLockState.Pinned or EItemPinLockState.Locked) // Don't send pinned or locked items (who even does this?) + { + return; + } + // Check for GClass increments Dictionary dynamicInteractions = Traverse.Create(contextInteractions) .Field>("dictionary_0").Value; @@ -87,7 +92,7 @@ private static void Prefix(ItemInfoInteractionsAbstractClass co else { string itemName = attachedItem.ShortName.Localized(); - string attachedItemText = FikaUIGlobals.ColorizeText(EColor.BLUE, itemName); + string attachedItemText = ColorizeText(EColor.BLUE, itemName); NotificationManagerClass.DisplayMessageNotification(string.Format(LocaleUtils.ITEM_CONTAINS_BLACKLISTED.Localized(), [itemText, attachedItemText]), iconType: EFT.Communications.ENotificationIconType.Alert);