Skip to content

Wayland fix + gui curser improvements#128

Open
I-No-oNe wants to merge 2 commits intoclickcrystals-development:mainfrom
I-No-oNe:wayland-fix/gui-curser
Open

Wayland fix + gui curser improvements#128
I-No-oNe wants to merge 2 commits intoclickcrystals-development:mainfrom
I-No-oNe:wayland-fix/gui-curser

Conversation

@I-No-oNe
Copy link
Copy Markdown
Contributor

Type of change

  • Bug fix
  • New feature

Description

Fixed wayland mouse issue (see #120) + improved gui curser behavior with anti cheats

Related issues

none.

Checklist:

  • My code follows the style guidelines of ItziSpyder(ImproperIssues).
  • I have added comments to my code in more complex areas.
  • I have tested the code in both development and production environments.
  • I have joined the ClickCrystals Discord.

devashish2024 and others added 2 commits April 12, 2026 13:54
glfwSetCursorPos() silently fails on Wayland when the cursor is in
normal (non-captured) mode, such as when the inventory screen is open.
This caused HOVER_TOTEM and CENTER_FIX to do nothing on Wayland.

After calling glfwSetCursorPos, also update Minecraft's internal
MouseHandler xpos/ypos state via a mixin accessor so the game's
slot detection and rendering use the correct cursor position regardless
of whether the OS actually moved the cursor.

Fixes clickcrystals-development#120
@ItziSpyder
Copy link
Copy Markdown
Member

Please don't use List<int[]> if each array is only responsible for two integer references, its inefficient and slower for iteration. Please consider switching this implementation to a Point object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants