mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 12:15:11 +00:00
Fixed phantom empty trailing line being renderer but not removable
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user