-
-
Notifications
You must be signed in to change notification settings - Fork 800
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
feat/chore: optimize plot queries and visit command #4600
base: main
Are you sure you want to change the base?
Conversation
|
||
@Override | ||
public boolean accepts(final @NonNull Plot plot) { | ||
return plot.isBasePlot() && plot.getOwners().size() > 0 && plot.getOwners().contains(owner); | ||
return plot.isBasePlot() && plot.isOwner(owner); |
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.
the current Plot#getOwners#contains
takes server-plots into account (so, if the server uuid is passed into this filter, and a plot is server owned, this filter would return true). Plot#isOwner
uses Plot#getOwnerAbs
and therefor would not produce the same result. Haven't seen an occurrence of a server plot being queried - not sure if this should just be changed either tbh
56a5bd6
to
9c64c2e
Compare
Description
/visit
to remove overheadSubmitter Checklist
@since TODO
.