API doc says the on_train_created event contains "train", but it actually contains "player_port".
Expected:
It should contain "train" instead of "player_port".
Steps to reproduce:
1) Start a game.
2) Input command:
Code: Select all
/c script.on_event(defines.events.on_train_created, function(event) for param_name, param in pairs(event) do game.print(param_name) end end)
3) Create a train.
4) It should show:
- name
- tick
- player_port