Closed trumank closed 4 years ago
oh god what have I done
Lol. I can rebase to the dev branch if that's easier.
yes please :)
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.
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.