Skip to content

how to get item's item_location? #2572

Closed Answered by joveeater
scarf005 asked this question in Q&A
Discussion options

You must be logged in to vote

You can't get an item_location from an item. You will have to pass the item_location through. You can go from an item_location TO an item though and as such rather than adding a new parameter you can replace the existing item parameter.

This does suck, there might be a lot of nested calls need changing. You'll need to know where the item is in order to use item_location's constructors properly and that can be a lot of calls away. It's all going away as part of my refactor. item_location has been removed entirely and you can just use item everywhere.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@scarf005
Comment options

scarf005 Apr 5, 2023
Maintainer Author

@Coolthulhu
Comment options

@scarf005
Comment options

scarf005 Apr 5, 2023
Maintainer Author

Answer selected by scarf005
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants