Dieser Commit ist enthalten in:
Ursprung
4ec767e922
Commit
5e6b86f2ba
@ -55,7 +55,7 @@ public class REntityServer implements Listener {
|
|||||||
private static final Function<Object, Integer> getEntityAction;
|
private static final Function<Object, Integer> getEntityAction;
|
||||||
static {
|
static {
|
||||||
if(Core.getVersion() > 15) {
|
if(Core.getVersion() > 15) {
|
||||||
Reflection.MethodInvoker useEntityGetAction = Reflection.getMethod(useEntity, "a");
|
Reflection.MethodInvoker useEntityGetAction = Reflection.getMethod(useEntityEnumAction, "a");
|
||||||
getEntityAction = value -> ((Enum<?>) useEntityGetAction.invoke(value)).ordinal();
|
getEntityAction = value -> ((Enum<?>) useEntityGetAction.invoke(value)).ordinal();
|
||||||
} else {
|
} else {
|
||||||
getEntityAction = value -> ((Enum<?>) value).ordinal();
|
getEntityAction = value -> ((Enum<?>) value).ordinal();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren