Relik77 / factorio_computer_core

MIT License
7 stars 4 forks source link

Unable to load save: attempt to index local 'item' (a nil value) #11

Closed Eeems closed 5 years ago

Eeems commented 5 years ago

Error while running on_load: __computer_core__/control.lua:565: attempt to index local 'item' (a nil value)

image

Looks like it's failing here: https://github.com/Relik77/factorio_computer_core/blob/master/control.lua#L565

Edit: This was a multiplayer save that I attempted to open in single player. Hosting as multiplayer again allowed me to open the save.

Eeems commented 5 years ago

@Relik77 I've just opened a pull request to fix this. I've yet to test it, but I will soon and update this when it has been tested.

Eeems commented 5 years ago

@Relik77 Tested, and updated the pull request with code that works.