Page 1 of 1

[0.15.1][posila]on_train_created missing the train field

Posted: Tue Apr 25, 2017 3:27 pm
by Choumiko
The new on_train_created event is missing the train field, instead it contains a player_port, which seems to be the train (it has carraiges field).

To reproduce:

In console:

Code: Select all

/c script.on_event(defines.events.on_train_created, function(event)game.print(serpent.dump(event)) end)
Results in:
Image

Re: [0.15.1][posila]on_train_created missing the train field

Posted: Tue Apr 25, 2017 3:38 pm
by posila
Thanks for the report.
Fixed for 0.15.2

Copy&pase error :D