Document behavior of LuaItemStack::grid inside on_robot_built_entity event

Place to report issues and suggest improvements to the API documentation.
robot256
Filter Inserter
Filter Inserter
Posts: 948
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Document behavior of LuaItemStack::grid inside on_robot_built_entity event

Post by robot256 »

Referencing my "bug" report on_robot_built_entity event ItemStack provides wrong grid.

The actual behavior in the on_robot_built_entity event is that before the event fires, the equipment grid in the item is moved to the new entity, and the equipment grid from the ghost entity is moved to the item. It would be good to mention that in the on_robot_built_entity event in the behavior of the "LuaItemStack stack" parameter.

I suspect the same thing might happen with the on_built_entity event and the items contained in the "LuaInventory consumed_items" parameter.
Post Reply

Return to “Documentation Improvement Requests”