Pass craftworld to the constructor to do less reflection

This commit is contained in:
Shevchik
2014-03-07 09:28:47 +04:00
parent 364c687e16
commit 6a19624e4b
4 changed files with 10 additions and 15 deletions

View File

@@ -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;