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

AFK ends immediately if on a redstone ore #79

Closed
Folas1337 opened this issue Jan 12, 2025 · 2 comments
Closed

AFK ends immediately if on a redstone ore #79

Folas1337 opened this issue Jan 12, 2025 · 2 comments
Assignees
Labels

Comments

@Folas1337
Copy link

@Dart2112 If you stand on redstone ore and use '/afk', it'll immediately put you out of the AFK state again.

This sounds very related to another plugin which had problems with this as well, the issue is here: Artillex-Studios/AxShulkers#18

The fix must've been within this commit: Artillex-Studios/AxShulkers@05e6aa2

Even though I don't see the onInteract event used anywhere in the code but perhaps it leads you in the right direction at least :)

@Dart2112
Copy link
Member

Interesting, the link you've provided does include the fix at this line
Artillex-Studios/AxShulkers@05e6aa2#diff-7da93ca603bd11c21160d0a9051a0d06c86029f356e4ceae94b3485a926ba809R16
I'll give this a before and after test to see if I can reproduce and then fix it. Thanks for bringing this to my attention.

@Dart2112
Copy link
Member

Verified the fix, but I have approached implementation a little differently
They just ignored all physical actions, I think it's worth keeping them but separating them out, so I have split the Interact detection into PhysicalInteract and ClickInteract such that you can choose which is enabled or disabled as you desire.
If you wish to use this updated version right now, you can download it from my CI server here
https://jenkins.dnablue2112.com/job/AFKPlus/39/
Otherwise this will be rolled out in the next update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants