Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Fix: Save on exit #125

Merged
merged 3 commits into from
Apr 10, 2021
Merged

Conversation

Baldie-dev
Copy link
Contributor

This is fix for the #117

As mentioned, the server was not saving data, since on exit the SimulatedWorld.Initialized was already false.

if (SimulatedWorld.Initialized && LocalPlayer.IsMasterClient)
{
SaveManager.SaveServerData(saveName);
}

Now, it is working: video

@hubastard hubastard merged commit d813ba2 into NebulaModTeam:master Apr 10, 2021
@Baldie-dev Baldie-dev deleted the bug-save-on-exit branch April 17, 2021 07:11
@@ -44,6 +44,10 @@ public void ProcessPacket(CreatePrebuildsRequest packet, NebulaConnection conn)
planet.physics = new PlanetPhysics(planet);
planet.physics.Init();
}
if (AccessTools.Field(typeof(CargoTraffic), "beltRenderingBatch").GetValue(planet.factory.cargoTraffic) == null)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants