Hi!
I've encountered a crash when selecting a blueprint in the blueprint library that is still in "preview state":
The mod Yemto's Item Count (0.7.1) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event yemtositemcount::on_player_cursor_stack_changed (ID 37)
BlueprintRecord cannot be read while it is a preview.
stack traceback:
[C]: in function '__index'
__yemtositemcount__/control.lua:153: in function <__yemtositemcount__/control.lua:141>
As far as I understand, this happens when a blueprint contains unknown entities (e.g. from a mod that has been removed). The game needs to sync these blueprints, but that doesn't always happen right away, so you may have unsynced or "preview only" blueprints in the library.
I think the fix is to check the LuaRecord.is_preview flag if the player is holding a blueprint/record?
Thank you for creating this mod! :)