Don't spam "Could not get blockstates resource" except for Vanilla blocks.

This commit is contained in:
David Vierra 2015-04-15 01:45:08 -10:00
parent 4c86ec59cf
commit be2db03b8c

View File

@ -155,7 +155,8 @@ cdef class BlockModels(object):
try:
statesJson = self._getBlockState(resourcePath)
except ResourceNotFound as e:
log.warn("Could not get blockstates resource for %s, skipping... (%r)", block, e)
if block.internalName.startswith("minecraft:"):
log.warn("Could not get blockstates resource for %s, skipping... (%r)", block, e)
continue
variants = statesJson['variants']
# variants is a dict with each key a resourceVariant value (from the block's ModelResourceLocation)