0

Fix leave data masking

This commit is contained in:
Andrew Chin
2013-11-03 14:30:21 -05:00
parent 5a320fb89a
commit cbd76d87a0

View File

@@ -1041,7 +1041,7 @@ def wood(self, blockid, data):
def leaves(self, blockid, data): def leaves(self, blockid, data):
# mask out the bits 4 and 8 # mask out the bits 4 and 8
# they are used for player placed and check-for-decay blocks # they are used for player placed and check-for-decay blocks
data = data & 0x3 data = data & 0x7
t = self.load_image_texture("assets/minecraft/textures/blocks/leaves_oak.png") t = self.load_image_texture("assets/minecraft/textures/blocks/leaves_oak.png")
if (blockid, data) == (18, 1): # pine! if (blockid, data) == (18, 1): # pine!
t = self.load_image_texture("assets/minecraft/textures/blocks/leaves_spruce.png") t = self.load_image_texture("assets/minecraft/textures/blocks/leaves_spruce.png")