From bc4f3b5228cb39c410866707e1c3411430a0f5a0 Mon Sep 17 00:00:00 2001 From: "Josiah (Gaming32) Glosson" Date: Thu, 19 Oct 2023 07:41:26 -0500 Subject: [PATCH] Fix API --- .../github/gaming32/modloadingscreen/api/LoadingScreenApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/java/io/github/gaming32/modloadingscreen/api/LoadingScreenApi.java b/src/api/java/io/github/gaming32/modloadingscreen/api/LoadingScreenApi.java index 1241a3c..295456e 100644 --- a/src/api/java/io/github/gaming32/modloadingscreen/api/LoadingScreenApi.java +++ b/src/api/java/io/github/gaming32/modloadingscreen/api/LoadingScreenApi.java @@ -196,7 +196,7 @@ public static boolean hasFeatures(long requestedFeatures) { public static void invokeEntrypoint(String name, Class type, Consumer invoker) throws RuntimeException { if (FABRIC_0_14_23_INVOKE_ENTRYPOINTS != null) { try { - FABRIC_0_14_23_INVOKE_ENTRYPOINTS.invoke(name, type, invoker); + FABRIC_0_14_23_INVOKE_ENTRYPOINTS.invoke(FabricLoader.getInstance(), name, type, invoker); } catch (Throwable t) { rethrow(t); }