SPIGOT-1856 / SPIGOT-1920: Fix Statistic.DROP not returning value when provided with a Material

This commit is contained in:
Matthew 2016-03-13 15:32:26 -04:00 committed by md_5
parent 55a85357a6
commit 0c7ae56148

View File

@ -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;
}