mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-12 18:42:07 +01:00
Fixed Leaves.getSpecies returning null on higher data values. Thanks to Wolvereness for the PR.
By: Nathan Adams <dinnerbone@dinnerbone.com>
This commit is contained in:
parent
a80bc820c6
commit
9b1383591b
@ -38,7 +38,7 @@ public class Leaves extends MaterialData {
|
|||||||
* @return TreeSpecies of this leave
|
* @return TreeSpecies of this leave
|
||||||
*/
|
*/
|
||||||
public TreeSpecies getSpecies() {
|
public TreeSpecies getSpecies() {
|
||||||
return TreeSpecies.getByData(getData());
|
return TreeSpecies.getByData((byte) (getData() & 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user