Prevent NaN inside arrow

This commit is contained in:
Shevchik 2013-09-30 11:25:33 +04:00
parent 8d64101d11
commit ddb244d477

View File

@ -136,7 +136,7 @@ public class Chairs extends JavaPlugin {
player.eject(); player.eject();
final Entity prevarrow = sit.get(player.getName()); final Entity prevarrow = sit.get(player.getName());
Block block = sitblockbr.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); arrow.setPassenger(player);
sit.put(player.getName(), arrow); sit.put(player.getName(), arrow);
Bukkit.getScheduler().scheduleSyncDelayedTask(this, new Runnable() Bukkit.getScheduler().scheduleSyncDelayedTask(this, new Runnable()