From ff24f4b409a935517a920286365be33ef685c13f Mon Sep 17 00:00:00 2001 From: ShaneBeee Date: Mon, 6 Jan 2025 14:41:13 -0800 Subject: [PATCH] ScriptLoader - fix error catching --- src/main/java/ch/njol/skript/ScriptLoader.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/ch/njol/skript/ScriptLoader.java b/src/main/java/ch/njol/skript/ScriptLoader.java index f079d4679ed..253bd676672 100644 --- a/src/main/java/ch/njol/skript/ScriptLoader.java +++ b/src/main/java/ch/njol/skript/ScriptLoader.java @@ -607,6 +607,8 @@ private static CompletableFuture loadScripts(List configs, O openCloseable.close(); } + }).exceptionally(t -> { + throw Skript.exception(t); }); }