From 1a22334d3182033a53269fe592a111739d9cde38 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Wed, 6 Apr 2016 12:26:49 +0100 Subject: [PATCH] Support integer data values for Effect.VILLAGER_PLANT_GROW By: Thinkofname --- .../src/main/java/org/bukkit/craftbukkit/CraftEffect.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftEffect.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftEffect.java index 7de0de5e19..16721835a2 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftEffect.java +++ b/paper-server/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;