Only catch Exceptions not Errors (#1186)

This commit is contained in:
glowredman authored and GitHub committed 2025-12-21 14:14:50 +01:00
1 parent 941fc88484
commit a32f9ca244
20 files changed
+45 -39

No files matched your search

@@ -47,7 +47,7 @@ public class ShaderPackSelectionList extends IrisGuiSlot {
try {
names = Iris.getShaderpacksDirectoryManager().enumerate();
} catch (Throwable e) {
} catch (Exception e) {
Iris.logger.error("Error reading files while constructing selection UI", e);
// Not translating this since it's going to be seen very rarely,