diff --git a/src/main/java/club/sk1er/patcher/util/world/sound/audioswitcher/ALCHelper.java b/src/main/java/club/sk1er/patcher/util/world/sound/audioswitcher/ALCHelper.java index 0dc8671d..eb980b51 100644 --- a/src/main/java/club/sk1er/patcher/util/world/sound/audioswitcher/ALCHelper.java +++ b/src/main/java/club/sk1er/patcher/util/world/sound/audioswitcher/ALCHelper.java @@ -31,10 +31,10 @@ public List getAvailableDevices(boolean useCache) { private String[] getAvailableDevicesString() { try { return ALC10.alcGetString(null, ALC11.ALC_ALL_DEVICES_SPECIFIER).split("\0"); - } catch (Exception ignored) { + } catch (Throwable ignored) { try { return ALC10.alcGetString(null, ALC10.ALC_DEVICE_SPECIFIER).split("\0"); - } catch (Exception ignored2) { + } catch (Throwable ignored2) { return null; } } diff --git a/src/main/java/club/sk1er/patcher/util/world/sound/audioswitcher/LibraryLWJGLOpenALImpl.java b/src/main/java/club/sk1er/patcher/util/world/sound/audioswitcher/LibraryLWJGLOpenALImpl.java index 149d50fd..909de9d8 100644 --- a/src/main/java/club/sk1er/patcher/util/world/sound/audioswitcher/LibraryLWJGLOpenALImpl.java +++ b/src/main/java/club/sk1er/patcher/util/world/sound/audioswitcher/LibraryLWJGLOpenALImpl.java @@ -30,7 +30,7 @@ public static void createAL() throws LWJGLException { } else { AL.create(); } - } catch (Exception e) { + } catch (Throwable e) { Patcher.instance.getLogger().error("Failed to create device, using system default.", e); AL.destroy(); AL.create();