L0laapk3 / FactorioMaps

L0laapk3's FactorioMaps mod
https://mods.factorio.com/mod/L0laapk3_FactorioMaps
Other
119 stars 22 forks source link

Fix maps saved in editor mode not working #75

Closed trumank closed 4 years ago

trumank commented 4 years ago

If a map is saved with editor mode enabled, then player.character doesn't exist. It also unpauses the map which otherwise would prevent the on_tick event from firing.

L0laapk3 commented 4 years ago

oh god what have I done

trumank commented 4 years ago

Lol. I can rebase to the dev branch if that's easier.

L0laapk3 commented 4 years ago

yes please :)

L0laapk3 commented 4 years ago

I had to undo some of these changes as they didn't work. the game object doesn't exist during on_load, and also it is not expected to unpause the game just from reloading the save, as it was never meant to be saved while factoriomaps is running in the first place.