mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 20:07:32 +00:00
Reverted JavaTextContainer.init to its original state before phantom line bug destroyed it lol
This commit is contained in:
1 parent
16f894baca
commit
c091a31022
3 files changed
+21
-53
No files matched your search
@@ -1791,11 +1791,13 @@ public class GuiScriptTextArea extends GuiNpcTextField {
|
||||
|
||||
this.text = text;
|
||||
//this.container = new TextContainer(text);
|
||||
this.container = new JavaTextContainer(text);
|
||||
this.container.init(this.width, this.height);
|
||||
if (this.enableCodeHighlighting) {
|
||||
if (this.container == null)
|
||||
this.container = new JavaTextContainer(text);
|
||||
|
||||
this.container.init(text, this.width, this.height);
|
||||
|
||||
if (this.enableCodeHighlighting)
|
||||
this.container.formatCodeText();
|
||||
}
|
||||
|
||||
// Ensure scroll state stays in bounds after text change
|
||||
int maxScroll = Math.max(0, this.container.linesCount - this.container.visibleLines);
|
||||
|
||||
Reference in new issue
Block a user