[2.0.76] item-request-proxy's removal plan can take out different items

Post your bugs and problems so we can fix them.
User avatar
Quezler
Filter Inserter
Filter Inserter
Posts: 323
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

[2.0.76] item-request-proxy's removal plan can take out different items

Post by Quezler »

the item request proxy does not care what is in a slot marked for removal, as long as any item in the removal plans marks that slot for extraction:

Code: Select all

/c chest = game.player.surface.create_entity{name = "wooden-chest", force = "player", position = {0, 0}}
/c chest.insert({name = "iron-plate"})
/c proxy = game.player.surface.create_entity{name = "item-request-proxy", force = "player", position = {0, 0}, target = chest, modules = {}, removal_plan = {{id = {name = "copper-plate"}, items = {in_inventory = {{inventory = defines.inventory.chest, stack = 0}}}}}}
/c game.print(serpent.line(proxy.removal_plan)) -- {{id = {name = "copper-plate"}, items = {in_inventory = {{inventory = 1, stack = 0}}}}}
/cheat all -- to get and enable personal robots
-- notice the robot took out the iron plate
expected behavior: if the to-extract item name & quality do not match what is in the slot, the removal plan for that slot goes away without doing anything.
Post Reply

Return to “Bug Reports”