Skip to content

Commit

Permalink
added null check for module name and logging new recipe count
Browse files Browse the repository at this point in the history
  • Loading branch information
pietro-lopes committed Oct 19, 2024
1 parent c2b49a4 commit c88bae1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,6 @@ private void addServerData(CallbackInfo ci) {
}

byType = recipesByType.build();
ConsoleJS.SERVER.info("Loaded " + byType.size() + " recipes");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit c88bae1

Please sign in to comment.