So I was making a leaf block and got most of it correct, but for some reason I have trouble with the blockID's(metadata)? So I can place all the 3 different blocks correctly and they render correctly in inventory, but after they have been on the ground for about 5 - 30 seconds they start to randomly change texture to another of the leaf textures? When I middle mouse click(in creative u get the block your looking at in your inventory) and it still gives me the block I placed, but on on the ground it had the wrong texture? This also happens when you place a block on top of any of the leaf textures. And I have tried to use if statement and switch both have the same problem anybody know how to fix?
Here is a direct link to the correct class in my github directory u can also look at all the other classes if necessary
https://github.com/Rasmustof/Kitchenmod/blob/master/common/kitchenmod/blocks/BlockPearLeaves.java