Closed MomoPewpew closed 7 months ago
Thanks for letting me know! I will try to reproduce and fix the issue. Maybe you could create a dump (/pf createdump
) and copy it here? A dump file will appear in your server/plugins/pathfinder
directory
dump_2024-04-01_20-59-23.json Certainly!
I made a PR that fixes the issue for the group selector
The issue with sorting isn't that the sort doesn't work, it's that if there are multiple selectors it will only apply the last one So just sorting by distance works, but if you then limit the selection then it unsorts them again
Not sure what's up with the ID selector yet
Thanks for having a closer look and for the PR, means a lot to me if people participate in the project!
Just 2 days ago I started a big cleanup for 5.0.0, renaming some classes and stuff. I'll need one more day to make sure I don't bring in regressions but then I'll have a close look at the selector.
A quick peek on the world filter showed that I compared UUID with World object :P
Objects.equals(node.getLocation().getWorld(), c.getValue().getUID())
Quick list so I don't forget a thing:
Only bug remaining is that limit=1,offset=1
results in something different than offset=1,limit=1
. To fix this, I must allow attributes to specify "runbefore" attributes.
Hello!
First of all, love the plugin. Spent an entire day mapping out my server, and I'm in love with the result
But I noticed that there's some issues with the selectors
I can't get the selectors for group, world or id to parse properly at all. They just give me errors in using the command
Sorting doesn't seem to do anything at all
Offset, limit and distance seem to work fine