mspielberg / factorio-railloader

Rapidly load and unload trains of bulk materials.
GNU Lesser General Public License v3.0
9 stars 19 forks source link

Fix crash related to reviving ghost #21

Closed CodeW0lf closed 3 years ago

CodeW0lf commented 3 years ago

Reviving a rail loader ghost with extra circuit connected chests will crash because circuit_connection_definitions is an array instead of a table. Switch from pairs to ipairs.

CodeW0lf commented 3 years ago

This change actually isn't good enough to fix the problem in all cases :(