From 972fd73e374cf3c64d8f5b6dbc92b11f0083a146 Mon Sep 17 00:00:00 2001 From: Shevchik Date: Thu, 19 Dec 2013 00:21:19 +0400 Subject: [PATCH] Wrong place --- src/com/cnaude/chairs/Chairs.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/com/cnaude/chairs/Chairs.java b/src/com/cnaude/chairs/Chairs.java index ab08bb3..9017bbf 100644 --- a/src/com/cnaude/chairs/Chairs.java +++ b/src/com/cnaude/chairs/Chairs.java @@ -56,7 +56,7 @@ public class Chairs extends JavaPlugin { log = this.getLogger(); try { World world = getServer().getWorlds().get(0); - Arrow arrow = world.spawnArrow(new Location(world, 0, 0, 0), new Vector(0, 0.1, 0), 0, 0); + Arrow arrow = world.spawnArrow(new Location(world, 0, 0, 0), new Vector(0, 0, 0), 0, 0); String arrowclass = arrow.getClass().getName(); Method getHandle; getHandle = arrow.getClass().getDeclaredMethod("getHandle"); @@ -64,6 +64,7 @@ public class Chairs extends JavaPlugin { Class entityarrow = getHandle.invoke(arrow).getClass(); Class craftserver = getServer().getClass(); vehiclearrowclass = new GenVehicleArrowClass(this).genAndLoadClass(arrowclass, entityarrow, craftserver); + arrow.remove(); } catch (Exception e) { e.printStackTrace(); log.severe("Failed to generate VehicleArrow class, exiting");