You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling GetAll<T> with an item entry type (line 180). The cast will fail if you're using a custom item entry type and a custom item entry type that forks the base item entry. A LINQ cast is being made and it needs to be converted to a cast type that takes into account potential failure of the conversion.
// Add the itemsinventory.Add(genericdefault item)
inventory.Add(newcustom item entry)// This now failsvarmyCustomEntries=inventory.GetAll<MyCustomItemEntry>();
The text was updated successfully, but these errors were encountered:
When calling
GetAll<T>
with an item entry type (line 180). The cast will fail if you're using a custom item entry type and a custom item entry type that forks the base item entry. A LINQ cast is being made and it needs to be converted to a cast type that takes into account potential failure of the conversion.The text was updated successfully, but these errors were encountered: