hand_location is incorrect when holding a blueprint in a blueprint book

Post your bugs and problems so we can fix them.
Post Reply
User avatar
Raiguard
Filter Inserter
Filter Inserter
Posts: 357
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

hand_location is incorrect when holding a blueprint in a blueprint book

Post 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 212 times
Don't forget, you're here forever.

Xorimuth
Filter Inserter
Filter Inserter
Posts: 430
Joined: Sat Mar 02, 2019 9:39 pm
Contact:

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

Post by Xorimuth »

I think this is a duplicate of 93175?

User avatar
Raiguard
Filter Inserter
Filter Inserter
Posts: 357
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

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

Post 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.
Don't forget, you're here forever.

Post Reply

Return to “Bug Reports”