From ddb244d477f1d0bdb9407f55117bc3aa4d345021 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Mon, 30 Sep 2013 11:25:33 +0400 Subject: [PATCH] Prevent NaN inside arrow --- src/com/cnaude/chairs/Chairs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/cnaude/chairs/Chairs.java b/src/com/cnaude/chairs/Chairs.java index 88b4e80..507dce5 100644 --- a/src/com/cnaude/chairs/Chairs.java +++ b/src/com/cnaude/chairs/Chairs.java @@ -136,7 +136,7 @@ public class Chairs extends JavaPlugin { player.eject(); final Entity prevarrow = sit.get(player.getName()); Block block = sitblockbr.get(player.getName()); - final Entity arrow = block.getWorld().spawnArrow(block.getLocation().add(0.5, 0, 0.5), new Vector(0, 0, 0), 0, 0); + final Entity arrow = block.getWorld().spawnArrow(block.getLocation().add(0.5, 0, 0.5), new Vector(0, 0.01, 0), 0, 0); arrow.setPassenger(player); sit.put(player.getName(), arrow); Bukkit.getScheduler().scheduleSyncDelayedTask(this, new Runnable()