mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +01:00
Add debug to flag missing texture mappings
This commit is contained in:
parent
25eb57c658
commit
34cc9532ac
@ -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 + ")");
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user