-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: master
Are you sure you want to change the base?
Conversation
I have yet to test this lmao
for (String entityType : entities) { | ||
if (checkEntityType(target, entityType, operator)) { | ||
return true; | ||
} | ||
} |
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.
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
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
Frick, wrong pr.... |
I have yet to test this lmao