Page 1 of 1

[0.12.22] on_picked_up_item event not firing on belted items

Posted: Tue Jan 26, 2016 7:55 am
by Supercheese
When I was testing earlier, I observed that the on_picked_up_item event did not trigger when picking up items that were on belts. I voiced my surprise on IRC and Rseding91 was able to reproduce the issue. As an example, the code:

Code: Select all

script.on_event(defines.events.on_picked_up_item, function(event)
    local player = game.get_player(event.player_index)
    player.print("Item picked up.")
end)
Will print the message as expected when picking up items on the ground that are not on belts, but will fail to print anything when picking up items that are on belts.

Re: [0.12.22] on_picked_up_item event not firing on belted items

Posted: Tue Jan 26, 2016 11:01 am
by kovarex
Thanks for the report, it is fixed for 0.12.23