Core: Only filter events from item/location name to id with id None
#5142
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What is this fixing or adding?
Currently if you have a location/item id of 0, these will get automatically filtered out by the filter meant to remove events. This causes such IDs to not error in unittests since they are removed before running. I don't think there'd be a reason for any other falsy values besides
None
to be filtered either.How was this tested?
Running the ID tests on a world that has an item or location with ID 0 to confirm it's now caught.
If this makes graphical changes, please attach screenshots.
0️⃣👎