Bug: If provided, the "enable_looted" parameter of LuaSurface::spill_item_stack always yield to true, even if false is provided. But if it is not provided, the item is not flagged as to-be-looted.
Steps to reproduce:
1) Type this command:
Code: Select all
/c game.player.surface.spill_item_stack(game.player.position, "iron-plate", false)
Code: Select all
/c game.player.surface.spill_item_stack(game.player.position, "iron-plate", true)
3) But without it, the items will not be looted automatically:
Code: Select all
/c game.player.surface.spill_item_stack(game.player.position, "iron-plate")