Skip to content

Commit

Permalink
More logging ig
Browse files Browse the repository at this point in the history
  • Loading branch information
Vazkii committed Apr 11, 2024
1 parent 3e24f7b commit 3b34027
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,14 @@ public static void buildContents(BuildCreativeModeTabContentsEvent event) {

// arbitrary failsafe, should never happen
if(misses > failsafe) {
logVerbose(() -> {
StringBuilder sb = new StringBuilder();
for(Entry<ItemStack, TabVisibility> entry : entries) {
sb.append(entry.getKey());
sb.append("; ");
}
return sb.toString();
});
new RuntimeException("Creative tab placement misses exceeded failsafe, aborting logic").printStackTrace();
return;
}
Expand Down

0 comments on commit 3b34027

Please sign in to comment.