mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 19:49:35 +01:00
Support integer data values for Effect.VILLAGER_PLANT_GROW
By: Thinkofname <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
863a77436f
commit
1a22334d31
1 changed files with 3 additions and 0 deletions
|
@ -10,6 +10,9 @@ public class CraftEffect {
|
|||
public static <T> 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;
|
||||
|
|
Loading…
Reference in a new issue