From 7c8dbf02c21d0d60f3a22219aa0b5afe02b287e5 Mon Sep 17 00:00:00 2001 From: Esophose Date: Sat, 16 Mar 2019 14:48:37 -0600 Subject: [PATCH] Fix invalid reflection parameter in 1.12- --- src/main/java/me/goodandevil/skyblock/listeners/Entity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/goodandevil/skyblock/listeners/Entity.java b/src/main/java/me/goodandevil/skyblock/listeners/Entity.java index 327b97ed..9e603ff5 100644 --- a/src/main/java/me/goodandevil/skyblock/listeners/Entity.java +++ b/src/main/java/me/goodandevil/skyblock/listeners/Entity.java @@ -470,7 +470,7 @@ public class Entity implements Listener { } else { try { materials = Materials.requestMaterials(event.getTo().name(), - (byte) event.getClass().getMethod("getData", byte.class).invoke(event)); + (byte) event.getClass().getMethod("getData").invoke(event)); } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException e) { e.printStackTrace();