From ba97cfa20d964ec1d9452df462c48d18c2f81917 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Sat, 21 Dec 2013 19:10:58 +0400 Subject: [PATCH] Spawn arrow with zero velocity --- src/com/cnaude/chairs/PlayerSitData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/cnaude/chairs/PlayerSitData.java b/src/com/cnaude/chairs/PlayerSitData.java index 4ba52b8..d63318d 100644 --- a/src/com/cnaude/chairs/PlayerSitData.java +++ b/src/com/cnaude/chairs/PlayerSitData.java @@ -92,7 +92,7 @@ public class PlayerSitData { } private Entity sitPlayerOnArrow(Player player, Location arrowloc) throws NoSuchMethodException, SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InstantiationException, InvocationTargetException { - Entity arrow = player.getWorld().spawnArrow(arrowloc, new Vector(0, 0.1 ,0), 0, 0); + Entity arrow = player.getWorld().spawnArrow(arrowloc, new Vector(0, 0 ,0), 0, 0); Method getHandleMethod = arrow.getClass().getDeclaredMethod("getHandle"); getHandleMethod.setAccessible(true); Object nmsarrow = getHandleMethod.invoke(arrow);