From 39e9c4d6607a628aee88c5f159c18a1efe3add41 Mon Sep 17 00:00:00 2001 From: arcade_kappa Date: Mon, 18 Nov 2024 16:22:50 +0800 Subject: [PATCH] Move to new API --- src/main/java/net/minecraftforge/fml/common/ModClassLoader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/fml/common/ModClassLoader.java b/src/main/java/net/minecraftforge/fml/common/ModClassLoader.java index 7e3e347ad..d7240878e 100644 --- a/src/main/java/net/minecraftforge/fml/common/ModClassLoader.java +++ b/src/main/java/net/minecraftforge/fml/common/ModClassLoader.java @@ -166,7 +166,7 @@ public void clearNegativeCacheFor(Set classList) public ModAPITransformer addModAPITransformer(ASMDataTable dataTable) { ModAPITransformer modAPI = new ModAPITransformer(); - TransformerDelegate.registerTransformerByInstance(modAPI); + TransformerDelegate.registerTransformer(modAPI); modAPI.initTable(dataTable); return modAPI; }