From 8d16fc08f131b9bfacf3140f984fc7dd63ffa8f1 Mon Sep 17 00:00:00 2001 From: Thinkofname Date: Wed, 6 Apr 2016 12:26:49 +0100 Subject: [PATCH] Support integer data values for Effect.VILLAGER_PLANT_GROW --- src/main/java/org/bukkit/craftbukkit/CraftEffect.java | 3 +++ 1 file changed, 3 insertions(+) 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;