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

Added entity type as a condition #71

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Faun471
Copy link

@Faun471 Faun471 commented Jul 28, 2024

I have yet to test this lmao

I have yet to test this lmao
Comment on lines 12 to 16
for (String entityType : entities) {
if (checkEntityType(target, entityType, operator)) {
return true;
}
}
Copy link
Member

@PeachesMLG PeachesMLG Jul 28, 2024

Choose a reason for hiding this comment

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

I dont believe this will work, lets say the Target is a Creeper, and we have ENTITYTYPE != ZOMBIE, CREEPER

It will loop over ZOMBIE, CREEPER it will say Zombie != Creeper it will return true. But it will never evaluate the second one Creeper != Creeper Which is falke

So for the == condition, we want any of them to match (what we have already) but for != we want all of them to match

Copy link
Member

@PeachesMLG PeachesMLG left a comment

Choose a reason for hiding this comment

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

LGTM

@PeachesMLG
Copy link
Member

Frick, wrong pr....

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.

3 participants