From 34cc9532ac097deab409512a0d9e1356b7da3a48 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Mon, 20 Aug 2018 21:52:35 -0400 Subject: [PATCH] Add debug to flag missing texture mappings --- DynmapCore/src/main/java/org/dynmap/hdmap/TexturePack.java | 4 +++- .../bukkit/helper/v113/BukkitVersionHelperSpigot113.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DynmapCore/src/main/java/org/dynmap/hdmap/TexturePack.java b/DynmapCore/src/main/java/org/dynmap/hdmap/TexturePack.java index e8825ff2..2f2e4240 100644 --- a/DynmapCore/src/main/java/org/dynmap/hdmap/TexturePack.java +++ b/DynmapCore/src/main/java/org/dynmap/hdmap/TexturePack.java @@ -1693,7 +1693,9 @@ public class TexturePack { DynmapBlockState blk = DynmapBlockState.getStateByGlobalIndex(gidx); if (blk.isAir()) continue; HDBlockStateTextureMap tm = HDBlockStateTextureMap.getByBlockState(blk); - if (tm == null) continue; + if (tm == HDBlockStateTextureMap.BLANK) { + Log.severe("Block " + blk + " - no texture mapping"); + } int cnt = HDBlockModels.getNeededTextureCount(blk); if(cnt > tm.faces.length){ Log.severe("Block " + blk + " - not enough textures for faces (" + cnt + " > " + tm.faces.length + ")"); diff --git a/bukkit-helper-113/src/main/java/org/dynmap/bukkit/helper/v113/BukkitVersionHelperSpigot113.java b/bukkit-helper-113/src/main/java/org/dynmap/bukkit/helper/v113/BukkitVersionHelperSpigot113.java index f651f47b..acec4c4c 100644 --- a/bukkit-helper-113/src/main/java/org/dynmap/bukkit/helper/v113/BukkitVersionHelperSpigot113.java +++ b/bukkit-helper-113/src/main/java/org/dynmap/bukkit/helper/v113/BukkitVersionHelperSpigot113.java @@ -116,7 +116,7 @@ public class BukkitVersionHelperSpigot113 extends BukkitVersionHelperCB { } dataToState.put(bd, bs); lastBlockState.put(bname, (lastbs == null) ? bs : lastbs); - Log.info(i + ": blk=" + bname + ", idx=" + idx + ", state=" + sb + ", waterlogged=" + bs.isWaterlogged()); + Log.verboseinfo(i + ": blk=" + bname + ", idx=" + idx + ", state=" + sb + ", waterlogged=" + bs.isWaterlogged()); } } /**