Fixed cursor rendering +1 Y offset

This commit is contained in:
bigguy345 committed 2025-12-19 18:15:37 +02:00
1 parent ba9b86e6d0
commit 124d82889d
1 file changed
+1 -1
@@ -348,7 +348,7 @@ public class GuiScriptTextArea extends GuiNpcTextField {
if (active && isEnabled() && (recentInput || (cursorCounter / 10) % 2 == 0) && (selection.getCursorPosition() >= data.start && selection.getCursorPosition() < data.end || (i == list.size() - 1 && selection.getCursorPosition() == text.length()))) {
int posX = x + LINE_NUMBER_GUTTER_WIDTH + ClientProxy.Font.width(
line.substring(0, Math.min(selection.getCursorPosition() - data.start, line.length())));
drawRect(posX + 1, yPos -1, posX + 2, yPos - 1 + container.lineHeight, 0xffffffff);
drawRect(posX + 1, posY, posX + 2, posY + container.lineHeight, 0xffffffff);
}
}
}