Item constructor doesn't make sense in my view. #4392
Jdance-Media
started this conversation in
Ideas
Replies: 1 comment
-
As-is, yes, it doesn't really make sense - the item and inventory stuff would really benefit from some rewrites. I believe the intention there, however, was to avoid adding yet another place that creates an item by ID rather than asset reference. i.e., in the hypothetical rewrite that's one less place that needs to be adjusted. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
One of the overloads takes an ItemAsset just to convert it to an ID, the method that the ID is passed into just grabs the ItemAsset again. That doesn't really make sense.

Expected setup:
Luckily Assets.find it only grabs a key from a dictionary, but mind as well avoid calling it if you don't need to.
Beta Was this translation helpful? Give feedback.
All reactions