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

Right clicking an interactible block sets PRIMARY instead of SECONDARY #9

Open
raccoonasdf opened this issue Feb 23, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@raccoonasdf
Copy link
Owner

raccoonasdf commented Feb 23, 2024

This is behaviour that I know about but would be cumbersome to avoid, so I'm documenting it here.

As a server plugin, I have to limit myself to information the vanilla client volunteers to the server. As such, the closest heuristic I have to detecting left click that doesn't depend on being in reach of a block is when the client sends over the arm swing animation. Unfortunately, the arm swing animation also triggers when you right click a block that can be interacted with.

@raccoonasdf raccoonasdf added bug Something isn't working wontfix This will not be worked on labels Feb 23, 2024
@raccoonasdf
Copy link
Owner Author

raccoonasdf commented Feb 23, 2024

Maybe I can try mixin'ing PlayerController.activateBlockOrUseItem and prefer SECONDARY when a simultaneous PRIMARY and SECONDARY select happens? I'll need to investigate :)

@raccoonasdf raccoonasdf removed the wontfix This will not be worked on label Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant