minecraft-renderObj
minecraft-renderObj copied to clipboard
avoid duplicate blocks
Here is a patch to avoid duplicate blocks.
An alternative for "better splitting of data lines" commit can be:
Original code:
if line[0] == '#' : continue
line = line.strip().split(' ')
New code:
if (line[0] == '#') or (line.isspace()) : continue # comment or empty line
line = line.split()
It can be changed in minecraft-renderObjv.py and minecraft-renderObjv2.py.