0

Fix a oops with water

This commit is contained in:
Andrew Chin
2013-10-26 02:02:18 -04:00
parent 46bda131f9
commit 0306a7040d

View File

@@ -926,7 +926,8 @@ def no_inner_surfaces(self, blockid, data):
texture = self.load_image_texture("assets/minecraft/textures/blocks/ice.png") texture = self.load_image_texture("assets/minecraft/textures/blocks/ice.png")
# now that we've used the lower 4 bits to get color, shift down to get the 5 bits that encode face hiding # now that we've used the lower 4 bits to get color, shift down to get the 5 bits that encode face hiding
data = data >> 4 if blockid != 9: # water doesn't have a shifted pseudodata
data = data >> 4
if (data & 0b10000) == 16: if (data & 0b10000) == 16:
top = texture top = texture