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

fix: Ensures world save paths are validated #2102

Closed

Conversation

Bohicatv
Copy link
Contributor

@Bohicatv Bohicatv commented Feb 1, 2025

No description provided.

@@ -65,6 +65,13 @@ public GenericEntityPersistence(string name, int priority, Serial minSerial, Ser

public override void WriteSnapshot(string savePath, HashSet<Type> typeSet)
{
if (string.IsNullOrEmpty(savePath))
Copy link
Contributor

Choose a reason for hiding this comment

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

This is impossible to be null or empty. Did you have an actual issue? If so can you give some details?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Saves were trying to pass empty paths.

@Bohicatv Bohicatv deleted the bugfix/WorldSave-Path-Validation branch February 2, 2025 20:21
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.

2 participants