Skip to content

Conversation

@xCynDev
Copy link
Contributor

@xCynDev xCynDev commented May 2, 2025

This PR adds CustomDataStore.Exists(), which allows you to check if a CustomDataStore instance exists on the given Player, without creating one like CustomDataStore.GetOrAdd() would.

Since there currently is no way to check for that, I figured I'd make a PR.

It also adds CustomDataStore<TStore>.Exists() and Player.HasDataStore<TStore>() as helper methods.

@x3rt
Copy link
Contributor

x3rt commented May 2, 2025

Could you make a PR towards #77 (data-store-performance) instead?

That way you'd still be credited instead of me re-implementing your changes into my PR

@xCynDev
Copy link
Contributor Author

xCynDev commented May 2, 2025

Will do!

@xCynDev xCynDev closed this May 2, 2025
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