diff --git a/src/main/java/dev/latvian/mods/kubejs/core/mixin/RecipeManagerMixin.java b/src/main/java/dev/latvian/mods/kubejs/core/mixin/RecipeManagerMixin.java index 390ab5d0d..9ecae243e 100644 --- a/src/main/java/dev/latvian/mods/kubejs/core/mixin/RecipeManagerMixin.java +++ b/src/main/java/dev/latvian/mods/kubejs/core/mixin/RecipeManagerMixin.java @@ -137,5 +137,6 @@ private void addServerData(CallbackInfo ci) { } byType = recipesByType.build(); + ConsoleJS.SERVER.info("Loaded " + byType.size() + " recipes"); } } \ No newline at end of file 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 be955cf60..2c80ea461 100644 --- a/src/main/java/dev/latvian/mods/kubejs/registry/RegistryType.java +++ b/src/main/java/dev/latvian/mods/kubejs/registry/RegistryType.java @@ -188,7 +188,8 @@ public static synchronized void scan(ResourceLocation registryName, ResourceLoca var stack = Thread.currentThread().getStackTrace(); for (var stackTraceElement : stack) { - if (MODULES_TO_SKIP.contains(stackTraceElement.getModuleName())) { + var moduleName = stackTraceElement.getModuleName(); + if (moduleName != null && MODULES_TO_SKIP.contains(moduleName)) { continue; }