hand_location is incorrect when holding a blueprint in a blueprint book
Posted: Wed Jun 22, 2022 5:12 am
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.
- 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.