Scripted Items Display Errors & Fix Console Scroll Wheel and Scroll Bar

This commit is contained in:
Kam committed 2025-02-09 04:02:16 -05:00
1 parent 4202cb7271
commit eeb6b2ea8b
8 files changed
+198 -40

No files matched your search

@@ -132,7 +132,7 @@ public class ScriptContainer {
var14.printStackTrace(pw);
} finally {
String errorString = sw.getBuffer().toString().trim();
this.appandConsole(errorString);
this.appendConsole(errorString);
pw.close();
}
}
@@ -201,14 +201,14 @@ public class ScriptContainer {
e.printStackTrace(pw);
}
finally {
appandConsole(sw.getBuffer().toString().trim());
appendConsole(sw.getBuffer().toString().trim());
pw.close();
Current = null;
}
}
}
public void appandConsole(String message) {
public void appendConsole(String message) {
if (message != null && !message.isEmpty()) {
long time = System.currentTimeMillis();
if (this.console.containsKey(time)) {