spill_item_stack enable_looted = false doesn't work

This subforum contains all the issues which we already resolved.
User avatar
Mooncat
Smart Inserter
Smart Inserter
Posts: 1196
Joined: Wed May 18, 2016 4:55 pm
Contact:

spill_item_stack enable_looted = false doesn't work

Post by Mooncat »

Just a minor bug.

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)
2) Some iron plates are immediately looted by the player. The same as

Code: Select all

/c game.player.surface.spill_item_stack(game.player.position, "iron-plate", true)
So the last parameter isn't doing its job properly.

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")
which is expected.

posila
Factorio Staff
Factorio Staff
Posts: 5321
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: spill_item_stack enable_looted = false doesn't work

Post by posila »

Thanks for the report.
Fixed for 0.15

Post Reply

Return to “Resolved Problems and Bugs”