Fixed phantom empty trailing line being renderer but not removable

This commit is contained in:
bigguy345 committed 2025-12-19 01:56:03 +02:00
1 parent 295e7cd9cd
commit 9ef4b6ecdf
2 files changed
+15 -3

No files matched your search

@@ -1263,6 +1263,8 @@ public class GuiScriptTextArea extends GuiNpcTextField {
text = text.replace("\r", "");
text = text.replace("\t", " ");
// preserve trailing newlines here — JavaTextContainer.init will
// ignore an extra empty final split when rendering lines.
if (this.text == null || !this.text.equals(text)) {
if (this.listener != null) {
this.listener.textUpdate(text);