Cached all GuiScriptTextArea tabs of GuiScriptInterface (fixes all tabs sharing the same undo/redo lists and other similar undesired behaviors)

This commit is contained in:
bigguy345 committed 2025-12-22 02:22:01 +02:00
1 parent 51aca95590
commit 0e3b0f047a
2 files changed
+39 -10

No files matched your search

@@ -365,7 +365,6 @@ public class GuiScriptTextArea extends GuiNpcTextField {
}
});
initializeKeyBindings();
init(x, y, width, height, text);
}
@@ -378,6 +377,7 @@ public class GuiScriptTextArea extends GuiNpcTextField {
this.setText(text);
this.undoing = false;
initGui();
initializeKeyBindings();
}
public void initGui() {
int endX = x + width, endY = y + height;