-
Notifications
You must be signed in to change notification settings - Fork 2k
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 delete MetaData when = 0 #8770
Conversation
The only issue I can see is when you mix |
In my case it’s a money mod. Where I only use set_int and get_int. |
what's the status on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This reverts commit 808eb4c.
We still automatic delete a key of a metadata or mod_storage data if it is = ""
This PR also auto deletes if it is = 0
As we basically also return 0 for no value this makes no compatibility problems
This saves memory when mods for example remove a player and set the var to default = 0
How to test
All the entries will disappear without the PR float, float2 and int will stay = 0