Skip to content

Commit 2695872

Browse files
Fixed renames coming from the example
1 parent ac8ec80 commit 2695872

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

src/main/java/me/toast/engine/ui/support/UltralightStandardLogger.java

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public class UltralightStandardLogger implements UltralightLogger {
3333
* new lines, so if you want really pretty log output reformat the string accordingly.
3434
* <p>
3535
* This logger is <b>NOT</b> called for {@code console.log} messages, see {@link
36-
* com.labymedia.ultralight.lwjgl3.opengl.listener.UIViewListener#onAddConsoleMessage(MessageSource, MessageLevel, String, long, long, String)} for that
36+
* me.toast.engine.ui.listener.UIViewListener#onAddConsoleMessage(MessageSource, MessageLevel, String, long, long, String)} for that
3737
* instead.
3838
*
3939
* @param level The level of the message
@@ -42,17 +42,9 @@ public class UltralightStandardLogger implements UltralightLogger {
4242
@Override
4343
public void logMessage(UltralightLogLevel level, String message) {
4444
switch (level) {
45-
case ERROR:
46-
System.err.println("[Ultralight/ERR] " + message);
47-
break;
48-
49-
case WARNING:
50-
System.err.println("[Ultralight/WARN] " + message);
51-
break;
52-
53-
case INFO:
54-
System.out.println("[Ultralight/INFO] " + message);
55-
break;
45+
case ERROR -> System.err.println("[Ultralight/ERR] " + message);
46+
case WARNING -> System.err.println("[Ultralight/WARN] " + message);
47+
case INFO -> System.out.println("[Ultralight/INFO] " + message);
5648
}
5749
}
5850
}

src/main/resources/example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ setInterval(() => {
7979
}, 1000);
8080

8181
// Import the interaction class
82-
const JSInteraction = java.importClass("com.labymedia.ultralight.lwjgl3.opengl.js.JSInteraction");
82+
const JSInteraction = java.importClass("me.toast.engine.ui.js.JSInteraction");
8383

8484
// Instantiate using the varargs constructor
8585
const interaction = new JSInteraction("Hello, World!", "How are you doing?", "I hope you are fine.");

0 commit comments

Comments
 (0)