Skip to content

Itemshop return valid definitions#299

Merged
MikeJeffers merged 1 commit intoDevelopmentfrom
itemshop-disabled-items
Apr 6, 2021
Merged

Itemshop return valid definitions#299
MikeJeffers merged 1 commit intoDevelopmentfrom
itemshop-disabled-items

Conversation

@MikeJeffers
Copy link

As the result of disabling entitydefaults in the DB, when EntityDefault.Get(id) is called, it will return def:0 undefined for disabled defaults.
Everything is fine right up until the client receives such a definition and it crashes.
The client doesn't crash in other contexts where a disabled item might be returned, but whether or not this could be handled in the client isn't within the scope of this project.

The fix is to filter out the hidden/disabled ED's when queried.

@MikeJeffers MikeJeffers added the bug Something isn't working label Apr 5, 2021
@MikeJeffers MikeJeffers self-assigned this Apr 5, 2021
@MikeJeffers MikeJeffers merged commit 39553b4 into Development Apr 6, 2021
@MikeJeffers MikeJeffers deleted the itemshop-disabled-items branch April 6, 2021 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working P21

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

1 participant