mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-1856 / SPIGOT-1920: Fix Statistic.DROP not returning value when provided with a Material
By: Matthew <stteg@hotmail.com>
This commit is contained in:
parent
9382269cf0
commit
587e2e1740
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