-
Notifications
You must be signed in to change notification settings - Fork 302
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
Attribute rework #1587
Attribute rework #1587
Conversation
It seems to be a packetevents issue, it is not reading itemstacks properly, getting the efficiency enchant is returning 0 |
Trying this out, trident with riptide still gives false positives, depth strider and efficiency seem to work fine. unknown_2024.07.11-17.29_clip_1.mp4
|
Read my comment above |
} | ||
|
||
public Optional<ValuedAttribute> getAttribute(Attribute attribute) { | ||
if (attribute == null) return Optional.empty(); |
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.
We should warn once if this happens, that either there is a bug or they are running a modded server
https://paste.grim.ac/f441ex2 GrimAC: https://github.com/GrimAnticheat/Grim/actions/runs/9928479692/artifacts/1699378021 |
Try the latest commit |
it working |
movement after respawn may also cause false |
This is probabilistic and only exists during the first movement upon respawn |
be53a9d
to
eacfad2
Compare
Is this ready for production? what other features need added? |
Still getting fastbreak false positives for players using lunar client on 1.21. |
The "Soul_speed" Enchantment triggers false positives when walking on "soul_sand", but "soul_soil" seems not to trigger false positives. |
Lunar client is not vanilla |
I'm aware. I was simply reporting that, after testing on my server, players using lunar client will still get fastbreak falses. I fail to see how that isn't appropriate to mention on this PR as this PR should fix the issue for all clients and not just vanilla. It is never mentioned that this PR is only for vanilla clients. |
If Lunar is falsing and vanilla is not, what is there to fix? That should be reported to the Lunar developers. |
Hello, I found in version 1.21 that when the Helmet is enchanted with aqua_affinity, mining blocks underwater will trigger a false alarm. |
4d03600
to
0bda7bc
Compare
0bda7bc
to
bed212a
Compare
Please retry on the latest commit |
yes, Latest build version, has resolved the issues I am currently encountering. |
d42222a
to
1a9612a
Compare
This rewrites the attribute system and also moves Grim towards using the attribute system more widely instead of manually checking client versions everywhere.
Attributes have a version requirement, if the player is below a version where that attribute exists then changes sent by the server will be ignored. They also have a get rewriter, this allows modification of the attribute value before being returned, which allows for contextual stuff like checking the player's version.
Fixes #1583
Tested on 1.20.6 and 1.21 server and clients with via.
Latest build: https://github.com/GrimAnticheat/Grim/actions/runs/10333304179/artifacts/1798102852