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

Variant Selector has angle in which wrong item is selected #5041

Open
copygirl opened this issue Sep 3, 2024 · 0 comments
Open

Variant Selector has angle in which wrong item is selected #5041

copygirl opened this issue Sep 3, 2024 · 0 comments
Labels
version: 1.20 Version: Minecraft 1.20.x

Comments

@copygirl
Copy link

copygirl commented Sep 3, 2024

Minecraft: 1.20.1
NeoForge: 47.1.106
Quark: 4.0-460

There's an angle at which the wrong item is selected when the cursor is over the right-most item in the selector wheel.

image

Instead of selecting the beam (right item), the stripped wood (bottom right item) is selected.
The marked area is the one in which the selection error occurs.

Presumably this has something to do with an angle close to 0° / 360° not being handled correctly.

boolean mouseInSector = variantExists && start < angle && angle < end && dist > 64;

@github-actions github-actions bot added the version: 1.20 Version: Minecraft 1.20.x label Sep 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
version: 1.20 Version: Minecraft 1.20.x
Projects
None yet
Development

No branches or pull requests

1 participant