0

If nothing shown return None. In iterate.c this will skip the draw.

This commit is contained in:
Alejandro Aguilera
2011-08-02 01:35:54 +02:00
parent 1ab06b3ae2
commit 04e7c20398

View File

@@ -581,6 +581,10 @@ def generate_special_texture(blockID, data):
side4 = texture # bottom right
else: side4 = None
# if nothing shown do not draw at all
if top == side3 == side4 == None:
return None
img = _build_full_block(top,None,None,side3,side4)
return generate_texture_tuple(img, blockID)