From 0c7ae561484546b37b3369973de2893d27814ae4 Mon Sep 17 00:00:00 2001 From: Matthew Date: Sun, 13 Mar 2016 15:32:26 -0400 Subject: [PATCH] SPIGOT-1856 / SPIGOT-1920: Fix Statistic.DROP not returning value when provided with a Material --- src/main/java/org/bukkit/craftbukkit/CraftStatistic.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftStatistic.java b/src/main/java/org/bukkit/craftbukkit/CraftStatistic.java index 9b92cb6db5..7037f6cbe5 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftStatistic.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftStatistic.java @@ -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; }