[0.12.22] on_picked_up_item event not firing on belted items
Posted: Tue Jan 26, 2016 7:55 am
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:
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.
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)