[0.15.1][posila]on_train_created missing the train field

This subforum contains all the issues which we already resolved.
Post Reply
Choumiko
Smart Inserter
Smart Inserter
Posts: 1352
Joined: Fri Mar 21, 2014 10:51 pm
Contact:

[0.15.1][posila]on_train_created missing the train field

Post 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

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post by posila »

Thanks for the report.
Fixed for 0.15.2

Copy&pase error :D

Post Reply

Return to “Resolved Problems and Bugs”