Handle meta=0 as undefined in CTM

This commit is contained in:
Mike Primm 2019-09-29 17:51:58 -05:00
parent 398e2d4f5f
commit 1be9f663c7

View File

@ -343,8 +343,8 @@ public class CTMTexturePack {
bs = DynmapBlockState.getBaseStateByName(token); bs = DynmapBlockState.getBaseStateByName(token);
addbase = true; addbase = true;
} }
if (bs.isAir()) { if (bs == DynmapBlockState.AIR) {
Log.info("Unknown block ID in CTM: " + token); Log.info("Unknown block ID in CTM: " + token);
} }
else if (addbase) { else if (addbase) {
addBaseBlockStateToIDSet(list, bs); addBaseBlockStateToIDSet(list, bs);