From b1ffaf32b853f12e909315bf7362ba7e194062c9 Mon Sep 17 00:00:00 2001 From: Henry Loenwind Date: Thu, 4 Jul 2024 12:30:59 +0200 Subject: [PATCH] Handle path verifications error when loading mod logo (#1225) --- .../java/net/neoforged/neoforge/client/gui/ModListScreen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/neoforged/neoforge/client/gui/ModListScreen.java b/src/main/java/net/neoforged/neoforge/client/gui/ModListScreen.java index b4de9b9605..cf6cf93a3d 100644 --- a/src/main/java/net/neoforged/neoforge/client/gui/ModListScreen.java +++ b/src/main/java/net/neoforged/neoforge/client/gui/ModListScreen.java @@ -395,7 +395,7 @@ public void upload() { } }), new Size2i(logo.getWidth(), logo.getHeight())); } - } catch (IOException e) {} + } catch (IOException | IllegalArgumentException e) {} return Pair.of(null, new Size2i(0, 0)); }).orElse(Pair.of(null, new Size2i(0, 0)));