Add debug to flag missing texture mappings

This commit is contained in:
Mike Primm 2018-08-20 21:52:35 -04:00
parent b556a89382
commit be659880e5
2 changed files with 4 additions and 2 deletions

View file

@ -1693,7 +1693,9 @@ public class TexturePack {
DynmapBlockState blk = DynmapBlockState.getStateByGlobalIndex(gidx); DynmapBlockState blk = DynmapBlockState.getStateByGlobalIndex(gidx);
if (blk.isAir()) continue; if (blk.isAir()) continue;
HDBlockStateTextureMap tm = HDBlockStateTextureMap.getByBlockState(blk); 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); int cnt = HDBlockModels.getNeededTextureCount(blk);
if(cnt > tm.faces.length){ if(cnt > tm.faces.length){
Log.severe("Block " + blk + " - not enough textures for faces (" + cnt + " > " + tm.faces.length + ")"); Log.severe("Block " + blk + " - not enough textures for faces (" + cnt + " > " + tm.faces.length + ")");

View file

@ -116,7 +116,7 @@ public class BukkitVersionHelperSpigot113 extends BukkitVersionHelperCB {
} }
dataToState.put(bd, bs); dataToState.put(bd, bs);
lastBlockState.put(bname, (lastbs == null) ? bs : lastbs); 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());
} }
} }
/** /**