From fe6669e750913b845be97f3f0da6b01fa89bf521 Mon Sep 17 00:00:00 2001 From: Martin Prokoph Date: Sat, 15 Feb 2025 11:19:41 +0100 Subject: [PATCH] fix: crash on pure Wayland sessions - Closes #84 --- common/src/main/java/eu/midnightdust/core/MidnightLib.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/eu/midnightdust/core/MidnightLib.java b/common/src/main/java/eu/midnightdust/core/MidnightLib.java index 99986cc..1343567 100755 --- a/common/src/main/java/eu/midnightdust/core/MidnightLib.java +++ b/common/src/main/java/eu/midnightdust/core/MidnightLib.java @@ -25,7 +25,7 @@ public class MidnightLib { try { if (!IS_SYSTEM_MAC) { System.setProperty("java.awt.headless", "false"); UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); - }} catch (Exception e) { LOGGER.error("Error setting system look and feel", e); } + }} catch (Exception | Error e) { LOGGER.error("Error setting system look and feel", e); } MidnightLibConfig.init(MOD_ID, MidnightLibConfig.class); } public static void registerAutoCommand() {