Page 1 of 1

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

Posted: Fri Oct 18, 2024 8:40 pm
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.)

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

Posted: Mon Oct 21, 2024 12:49 pm
by Therenas
Thanks, this is noted now for the next release.