Add debug to flag missing texture mappings

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

View File

@ -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 + ")");

View File

@ -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());
}
}
/**