13
0
geforkt von Mirrors/Paper

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

By: Matthew <stteg@hotmail.com>
Dieser Commit ist enthalten in:
CraftBukkit/Spigot 2016-03-13 15:32:26 -04:00
Ursprung 9382269cf0
Commit 587e2e1740

Datei anzeigen

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