From d3e758fce6bd495100361698433e7b22a5a1fcba Mon Sep 17 00:00:00 2001 From: LexManos Date: Sun, 29 May 2016 00:06:43 -0700 Subject: [PATCH] Fixed issue with @ObjectHolder and the new registry system. Closes #2640 Only run static initalizers for classes we need to get the names from values. --- .../fml/common/registry/ObjectHolderRegistry.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraftforge/fml/common/registry/ObjectHolderRegistry.java b/src/main/java/net/minecraftforge/fml/common/registry/ObjectHolderRegistry.java index 9d56cace7..0e0f2b177 100644 --- a/src/main/java/net/minecraftforge/fml/common/registry/ObjectHolderRegistry.java +++ b/src/main/java/net/minecraftforge/fml/common/registry/ObjectHolderRegistry.java @@ -70,7 +70,7 @@ public enum ObjectHolderRegistry { { try { - clazz = Class.forName(className, true, getClass().getClassLoader()); + clazz = Class.forName(className, extractFromValue, getClass().getClassLoader()); classCache.put(className, clazz); } catch (Exception ex)