diff --git a/src/main/java/dev/latvian/mods/kubejs/registry/RegistryType.java b/src/main/java/dev/latvian/mods/kubejs/registry/RegistryType.java index a66f62896..be955cf60 100644 --- a/src/main/java/dev/latvian/mods/kubejs/registry/RegistryType.java +++ b/src/main/java/dev/latvian/mods/kubejs/registry/RegistryType.java @@ -131,7 +131,7 @@ private static void processClass(Stream> classStream) { .flatMap(Stream::of) .forEach(field -> { try { - if (!VALID_TYPES.get().contains(field.getType())) { + if (!VALID_TYPES.get().contains(field.getType()) || !Modifier.isStatic(field.getModifiers())) { return; }