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

Auto clean bad world linkages #3150

Merged
merged 1 commit into from Apr 19, 2016
Merged

Auto clean bad world linkages #3150

merged 1 commit into from Apr 19, 2016

Conversation

SafwatHalaby
Copy link
Member

@SafwatHalaby SafwatHalaby commented Apr 18, 2016

Right now, the server refuses to start when a world.ini has nonexisting worlds. This is confusing for people, and we published a full guide. After this PR, the server will simply remove bad linkages on startup (A message will appear in the console, telling the player that the server has done this).

Justifying scenario: If an admin removes world_nether from settings.ini in an attempt to disable the nether, the server refuses to start without this PR. The admin expects it to start as usual, without the nether. After this PR, the server will "garbage collect" world_nether and remove it from every linkage it was referenced from.

In short, if a world has LinkedWorldName=my_Deleted_world and then my_deleted_world is removed from settings.ini, the server sets LinkedWorldName to blank.

@SafwatHalaby SafwatHalaby merged commit 4348b2f into cuberite:master Apr 19, 2016
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.

None yet

1 participant