Fixed Leaves.getSpecies returning null on higher data values. Thanks to Wolvereness for the PR.

This commit is contained in:
Nathan Adams
2012-01-15 07:33:02 +00:00
parent 44217678e6
commit c6ea04c807

View File

@@ -38,7 +38,7 @@ public class Leaves extends MaterialData {
* @return TreeSpecies of this leave
*/
public TreeSpecies getSpecies() {
return TreeSpecies.getByData(getData());
return TreeSpecies.getByData((byte) (getData() & 3));
}
/**