From 6fba18bac1ccaf8d376f7d39f3c5d4c2f8450223 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke <nassim@njahnke.dev> Date: Thu, 1 Feb 2024 11:41:29 +0100 Subject: [PATCH] Add missing catch --- patches/server/Paper-Plugins.patch | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patches/server/Paper-Plugins.patch b/patches/server/Paper-Plugins.patch index 9d50e6a278..0f058ae011 100644 --- a/patches/server/Paper-Plugins.patch +++ b/patches/server/Paper-Plugins.patch @@ -5518,6 +5518,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + this.walkFiles(context, path -> { + try { + super.prepareContext(path); ++ } catch (IllegalArgumentException ignored) { ++ // Ignore illegal argument exceptions from jar checking + } catch (IOException e) { + throw new RuntimeException(e); + } @@ -5531,7 +5533,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000 + try { + super.registerProviders(entrypointHandler, path); + } catch (IllegalArgumentException ignored) { -+ // Ignore initial argument exceptions ++ // Ignore illegal argument exceptions from jar checking + } catch (Exception e) { + LOGGER.error("Error loading plugin: " + e.getMessage(), e); + }