mirror of
https://github.com/songoda/FabledSkyBlock.git
synced 2024-11-07 03:00:29 +01:00
Fix invalid reflection parameter in 1.12-
This commit is contained in:
parent
6030e14f67
commit
7c8dbf02c2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user