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.

Редакция NLZONE · 2 мин чтения · 1 просмотр
Create Cursor Fix
Скачать Create Cursor Fix1.21.1 · с официальной страницы: modrinth.com
Перейти к загрузке

Что это

Fixes a gui rendering bug with Create on some linux distros. Guis may not reflect the true physical cursor position when opened.

  • Тип: мод
  • Загрузчик: neoforge
  • Версии Minecraft: 1.21.1
  • Скачиваний на Modrinth: 1 386

Подробно

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.

- Minecraft 1.21.1 - NeoForge 21.1.219 or newer - Create 6.0.9 or newer

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.

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:

text 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.

Как установить

Скачайте файл на официальной странице ниже и положите его в папку mods (для модов) или plugins (для плагинов) вашего сервера или клиента. Для модов нужен совместимый загрузчик. Версия должна совпадать с версией Minecraft.

Текст подготовлен автоматически из описания на Modrinth и ждёт проверки редакцией.

Редакция NLZONE

Пишем о серверах, модах и играх, в которые играем сами. Нашли ошибку — напишите нам, исправим.

Комментарии 0

Комментарии к этому материалу отключены.

Читайте также