This allows the arrow to despawn properly
This commit is contained in:
parent
75eeafb979
commit
841fee179b
@ -56,7 +56,7 @@ public class Chairs extends JavaPlugin {
|
|||||||
log = this.getLogger();
|
log = this.getLogger();
|
||||||
try {
|
try {
|
||||||
World world = getServer().getWorlds().get(0);
|
World world = getServer().getWorlds().get(0);
|
||||||
Arrow arrow = world.spawnArrow(new Location(world, 0, 0, 0), new Vector(0, 0, 0), 0, 0);
|
Arrow arrow = world.spawnArrow(new Location(world, 0, 0, 0), new Vector(0, 0.1, 0), 0, 0);
|
||||||
String arrowclass = arrow.getClass().getName();
|
String arrowclass = arrow.getClass().getName();
|
||||||
Method getHandle;
|
Method getHandle;
|
||||||
getHandle = arrow.getClass().getDeclaredMethod("getHandle");
|
getHandle = arrow.getClass().getDeclaredMethod("getHandle");
|
||||||
|
Loading…
Reference in New Issue
Block a user