geforkt von Mirrors/Paper
Support integer data values for Effect.VILLAGER_PLANT_GROW
By: Thinkofname <thinkofdeath@spigotmc.org>
Dieser Commit ist enthalten in:
Ursprung
863a77436f
Commit
1a22334d31
@ -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;
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren