fix: crash on pure Wayland sessions

- Closes #84
This commit is contained in:
Martin Prokoph
2025-02-15 11:19:41 +01:00
parent e938682e51
commit fe6669e750

View File

@@ -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() {