mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 03:48:01 +01:00
Support integer data values for Effect.VILLAGER_PLANT_GROW
This commit is contained in:
parent
3dc138d980
commit
8d16fc08f1
@ -10,6 +10,9 @@ public class CraftEffect {
|
|||||||
public static <T> int getDataValue(Effect effect, T data) {
|
public static <T> int getDataValue(Effect effect, T data) {
|
||||||
int datavalue;
|
int datavalue;
|
||||||
switch(effect) {
|
switch(effect) {
|
||||||
|
case VILLAGER_PLANT_GROW:
|
||||||
|
datavalue = (Integer) data;
|
||||||
|
break;
|
||||||
case POTION_BREAK:
|
case POTION_BREAK:
|
||||||
datavalue = ((Potion) data).toDamageValue() & 0x3F;
|
datavalue = ((Potion) data).toDamageValue() & 0x3F;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user