Fix #295 - Cope with broken texture references in mod/respack models

This commit is contained in:
David Vierra 2017-03-13 16:44:12 -10:00
parent 2adc7c3491
commit b5d0553129

View File

@ -339,9 +339,7 @@ cdef class BlockModels(object):
textureVars = {}
for k, v in rawTextureVars.iteritems():
if v is None:
continue
while v.startswith("#"):
while v is not None and v.startswith("#"):
v = rawTextureVars.get(v[1:])
if v:
textureVars[k] = v