Fix invalid reflection parameter in 1.12-

This commit is contained in:
Esophose 2019-03-16 14:48:37 -06:00
parent 6030e14f67
commit 7c8dbf02c2

View File

@ -470,7 +470,7 @@ public class Entity implements Listener {
} else { } else {
try { try {
materials = Materials.requestMaterials(event.getTo().name(), 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 } catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException
| NoSuchMethodException | SecurityException e) { | NoSuchMethodException | SecurityException e) {
e.printStackTrace(); e.printStackTrace();