valence
valence copied to clipboard
add `slot_mut` to `Inventory`
- add doc comment to item stack
- add
slot_mut
Test Plan
- unit tests also
- run
chestexample - sneak to get stone in first hotbar slot
Entities' tracked data don't have a get_mut for any of their fields for this reason.
That is true. I might be able to do something about that with a guard type around the slot. I'll play around with it.
After playing around with it for a little too long, this is too complicated.