Page 1 of 1

hand_location is incorrect when holding a blueprint in a blueprint book

Posted: Wed Jun 22, 2022 5:12 am
by raiguard
Steps to reproduce:
- Start a new game
- Put a blueprint book in your inventory, and put a blueprint inside of the book
- Pick up the blueprint in the book
- /c game.print(serpent.block(game.player.hand_location))
- Observe that the hand_location says the hand is in the main inventory, even though it's actually in the blueprint book's inventory.

This is breaking Editor Extensions' inventory sync, and the only workaround I can think of is to iterate the entire inventory to check for a matching book, which is infeasible.
book.png
book.png (367.77 KiB) Viewed 1406 times

Re: hand_location is incorrect when holding a blueprint in a blueprint book

Posted: Wed Jun 22, 2022 1:25 pm
by Xorimuth
I think this is a duplicate of 93175?

Re: hand_location is incorrect when holding a blueprint in a blueprint book

Posted: Thu Jun 23, 2022 2:11 am
by raiguard
Ah frick, I searched before posting but apparently didn't search hard enough.

I hope that I can get a different answer, because I can't think of a sane way to work around this issue.