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