diff options
author | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-15 07:33:02 +0000 |
---|---|---|
committer | Nathan Adams <dinnerbone@dinnerbone.com> | 2012-01-15 07:33:02 +0000 |
commit | 87ee353d4d609ba93165271bf32bb99541adae4e (patch) | |
tree | 8af80c2bad5ac5eee9eb074af22b7305bd9d2165 | |
parent | d36385d28fc77130119dd64777cc608c79289ca5 (diff) | |
download | bukkit-87ee353d4d609ba93165271bf32bb99541adae4e.tar bukkit-87ee353d4d609ba93165271bf32bb99541adae4e.tar.gz bukkit-87ee353d4d609ba93165271bf32bb99541adae4e.tar.lz bukkit-87ee353d4d609ba93165271bf32bb99541adae4e.tar.xz bukkit-87ee353d4d609ba93165271bf32bb99541adae4e.zip |
Fixed Leaves.getSpecies returning null on higher data values. Thanks to Wolvereness for the PR.
-rw-r--r-- | src/main/java/org/bukkit/material/Leaves.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/material/Leaves.java b/src/main/java/org/bukkit/material/Leaves.java index 8b8e0d70..d02dc90a 100644 --- a/src/main/java/org/bukkit/material/Leaves.java +++ b/src/main/java/org/bukkit/material/Leaves.java @@ -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)); } /** |