Pass craftworld to the constructor to do less reflection
This commit is contained in:
@@ -77,7 +77,7 @@ public class PlayerSitData {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
private Entity sitPlayerOnArrow(Player player, Location arrowloc) throws NoSuchMethodException, SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InstantiationException, InvocationTargetException {
|
||||
private Entity sitPlayerOnArrow(Player player, Location arrowloc) throws NoSuchMethodException, SecurityException, InstantiationException, IllegalAccessException, IllegalArgumentException, InvocationTargetException {
|
||||
Entity arrow = plugin.getNMSAccess().spawnArrow(arrowloc);
|
||||
arrow.setPassenger(player);
|
||||
return arrow;
|
||||
|
Reference in New Issue
Block a user