Skip to content

Commit

Permalink
Add debug log for missing block renderer. Closes: #639
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Dec 21, 2024
1 parent 2bc01e7 commit 7ddb25d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@

import com.github.benmanes.caffeine.cache.Caffeine;
import com.github.benmanes.caffeine.cache.LoadingCache;
import de.bluecolored.bluemap.core.logger.Logger;
import de.bluecolored.bluemap.core.map.TextureGallery;
import de.bluecolored.bluemap.core.map.hires.RenderSettings;
import de.bluecolored.bluemap.core.map.hires.TileModelView;
Expand All @@ -42,6 +43,8 @@ public class MissingModelRenderer implements BlockRenderer {
.build(blockState -> {
for (BlockRendererType type : BlockRendererType.REGISTRY.values())
if (type.isFallbackFor(blockState)) return type;

Logger.global.logDebug("No renderer found for block state: " + blockState);
return BlockRendererType.DEFAULT;
});

Expand Down

0 comments on commit 7ddb25d

Please sign in to comment.