diff --git a/src/main/java/org/bukkit/craftbukkit/CraftEffect.java b/src/main/java/org/bukkit/craftbukkit/CraftEffect.java index 7de0de5e19..16721835a2 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftEffect.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftEffect.java @@ -10,6 +10,9 @@ public class CraftEffect { public static int getDataValue(Effect effect, T data) { int datavalue; switch(effect) { + case VILLAGER_PLANT_GROW: + datavalue = (Integer) data; + break; case POTION_BREAK: datavalue = ((Potion) data).toDamageValue() & 0x3F; break;