mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-25 10:27:55 +01:00
SPIGOT-1856 / SPIGOT-1920: Fix Statistic.DROP not returning value when provided with a Material
This commit is contained in:
parent
55a85357a6
commit
0c7ae56148
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user