[2.0.6] Clarify that LuaEntity::mine() destroys items if no inventory given

robot256
Filter Inserter
Filter Inserter
Posts: 957
Joined: Sun Mar 17, 2019 1:52 am
Contact:

[2.0.6] Clarify that LuaEntity::mine() destroys items if no inventory given

Post by robot256 »

The description of LuaEntity::mine() states that "The result of mining the entity (the item(s) it produces when mined) will be dropped on the ground if they don't fit into the provided inventory."

The "inventory" parameter is optional. It would be helpful to state that the items will be destroyed if no inventory provided. (Instead of *all* being spilled near the entity that was mined.)
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 261
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: [2.0.6] Clarify that LuaEntity::mine() destroys items if no inventory given

Post by Therenas »

Thanks, this is noted now for the next release.
Post Reply

Return to “Resolved Requests”