Code: Select all
script.on_event(defines.events.on_entity_logistic_slot_changed, function(event)
game.player.print(event)
end)
Running the game with the debugger and a breakpoint set on the middle line of the function, I saw the breakpoint trigger when loading a save. While at the breakpoint, the value of `event` was `nil`. I repeated this a few times. Then I started a new game and hit the breakpoint again. I did this a few times.
However, after I came here to post this and now that I go back to reproduce the failure again, I can no longer reproduce it. I don't know what changed.