mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue