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

Add true Predicate to avoid crash #39

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Add true Predicate to avoid crash #39

merged 1 commit into from
Oct 25, 2023

Conversation

Dariensg
Copy link
Contributor

Solves #27

When getting entities of class, the World checks the predicate supplied here. There's never a null check on that predicate (and it's not marked nullable), so this was causing a crash by trying to run a predicate test on a null predicate. Adding a simple true predicate should resolve this and avoid the crash!

Copy link
Member

@Pyrofab Pyrofab left a comment

Choose a reason for hiding this comment

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

Oh thanks, I must have missed a change during one of the ports.

@Pyrofab Pyrofab merged commit 0d18c9e into Ladysnake:1.20 Oct 25, 2023
0 of 2 checks passed
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.

None yet

2 participants