From bf540798d910190550b7d715d4c2663b44f75fa9 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Fri, 7 Mar 2014 20:16:15 +0400 Subject: [PATCH] Use prevarrow location as location for new arrow --- src/com/cnaude/chairs/core/PlayerSitData.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/com/cnaude/chairs/core/PlayerSitData.java b/src/com/cnaude/chairs/core/PlayerSitData.java index 8ac5562..ea57006 100644 --- a/src/com/cnaude/chairs/core/PlayerSitData.java +++ b/src/com/cnaude/chairs/core/PlayerSitData.java @@ -72,9 +72,7 @@ public class PlayerSitData { final Entity prevarrow = sit.get(player.getName()); sit.remove(player.getName()); player.eject(); - Block block = sitblockbr.get(player.getName()); - Location arrowloc = block.getLocation().add(0.5, 0 , 0.5); - Entity arrow = plugin.getNMSAccess().spawnArrow(arrowloc); + Entity arrow = plugin.getNMSAccess().spawnArrow(prevarrow.getLocation()); arrow.setPassenger(player); sit.put(player.getName(), arrow); Bukkit.getScheduler().scheduleSyncDelayedTask(