diff options
author | Matthew <stteg@hotmail.com> | 2016-03-13 15:32:26 -0400 |
---|---|---|
committer | md_5 <git@md-5.net> | 2016-03-14 08:00:14 +1100 |
commit | 0c7ae561484546b37b3369973de2893d27814ae4 (patch) | |
tree | 5041ab93e453c9d422b4ed89c6084a97b43bce5d /src/main/java | |
parent | 55a85357a6d5118fbb2d3117d596ae83aae34239 (diff) | |
download | craftbukkit-0c7ae561484546b37b3369973de2893d27814ae4.tar craftbukkit-0c7ae561484546b37b3369973de2893d27814ae4.tar.gz craftbukkit-0c7ae561484546b37b3369973de2893d27814ae4.tar.lz craftbukkit-0c7ae561484546b37b3369973de2893d27814ae4.tar.xz craftbukkit-0c7ae561484546b37b3369973de2893d27814ae4.zip |
SPIGOT-1856 / SPIGOT-1920: Fix Statistic.DROP not returning value when provided with a Material
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/CraftStatistic.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftStatistic.java b/src/main/java/org/bukkit/craftbukkit/CraftStatistic.java index 9b92cb6d..7037f6cb 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftStatistic.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftStatistic.java @@ -119,6 +119,9 @@ public class CraftStatistic { if (stat == Statistic.BREAK_ITEM) { return StatisticList.c(CraftMagicNumbers.getItem(material)); // PAIL: getBreakItemStatistic } + if (stat == Statistic.DROP) { + return StatisticList.e(CraftMagicNumbers.getItem(material)); // PAIL: getDropItemStatistic + } } catch (ArrayIndexOutOfBoundsException e) { return null; } |