Create Cursor Fix
Fixes a gui rendering bug with Create on some linux distros. Guis may not reflect the true physical cursor position when opened.
截图
介绍
Create Cursor Fix
Small client-side NeoForge mod for Minecraft 1.21.1 that fixes stale cursor
coordinates in Create value settings screens.
This issue shows up in any gui that is an instance of ValueSettingsScreen including Rotation Speed Controllers and Creative motors.
I do not intend to support other versions unless asked, but its pretty easy to port, so feel free to do so or request a particular version.
Requirements
- Minecraft 1.21.1
- NeoForge 21.1.219 or newer
- Create 6.0.9 or newer
What It Fixes
Create’s value settings UI receives mouse coordinates from Minecraft’s normal
screen rendering path. On some Linux setups, those coordinates can be stale
after Create programmatically moves the cursor.
This mod patches Create’s value settings screen to read the current GLFW cursor
position directly when rendering and saving the panel.
Wayland Support
Wayland is not explicitly supported.
This mod can fix the stale-coordinate case when cursor repositioning already
works. That usually means x11 or xwayland, but I haven’t been able to reliably prove this fixes anything outside of x11. Im a new modder, apologies.
Native Wayland seems to sometimes fail earlier than that. GLFW only supports
glfwSetCursorPos on Wayland while the cursor is disabled. Minecraft GUI
screens normally use a visible, enabled cursor, so a Wayland compositor may
refuse Create’s attempt to move the cursor in the first place.
In that case there is no moved cursor position for this mod to read:
Create asks GLFW to move/snap the cursor
The Wayland compositor refuses or ignores that cursor move
The visible cursor never moves to the saved setting
This mod cannot infer the intended cursor position from GLFW
If the cursor does not visibly move to the saved value when opening the Create
panel, that setup is probably outside this mod’s support boundary.
常见问题
Create Cursor Fix 支持哪些 Minecraft 版本?
Create Cursor Fix 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
Create Cursor Fix 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:仅客户端。
评论
登录后评论和评分