diff --git a/Exiled.CustomModules/API/Features/Generic/TrackerBase.cs b/Exiled.CustomModules/API/Features/Generic/TrackerBase.cs index 5c8cc66e8f..6a7f1b8c05 100644 --- a/Exiled.CustomModules/API/Features/Generic/TrackerBase.cs +++ b/Exiled.CustomModules/API/Features/Generic/TrackerBase.cs @@ -132,7 +132,7 @@ public virtual bool AddOrTrack(Pickup pickup) if (trackableBehaviours.IsEmpty()) return false; - if (TrackedItemSerials.ContainsKey(pickup.Serial)) + if (TrackedPickupSerials.ContainsKey(pickup.Serial)) { IEnumerable previousTrackableItems = TrackedPickupSerials[pickup.Serial]; TrackedPickupSerials[pickup.Serial].AddRange(trackableBehaviours.Cast()); @@ -249,7 +249,8 @@ public virtual bool Restore(Pickup pickup, Item item) /// if the item was restored successfully; otherwise, . public virtual bool Restore(Item item, Pickup pickup) { - if (!pickup || !item || !TrackedPickupSerials.ContainsKey(pickup.Serial) || !TrackedItemSerials.ContainsKey(item.Serial)) + if (!pickup || !item || !TrackedPickupSerials.ContainsKey(pickup.Serial) || + !TrackedItemSerials.ContainsKey(item.Serial)) return false; foreach (T behaviour in TrackedPickupSerials[pickup.Serial])