hand_location is incorrect when holding a blueprint in a blueprint book

Things that has been reported already before.
Post Reply
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 451
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 1064 times
Don't forget, you're here forever.

Xorimuth
Filter Inserter
Filter Inserter
Posts: 625
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?
My mods
Content: Freight Forwarding | Spidertron Patrols | Spidertron Enhancements | Power Overload
QoL: Factory Search | Remote Configuration | Module Inserter Simplified | Wire Shortcuts X | Ghost Warnings

User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 451
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 “Duplicates”