mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 07:20:24 +01:00
Fixed CraftWorld.spawnArrow() not setting X, Y, Z positions correctly.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
6b25a95a88
commit
5b605fdc4f
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ public class CraftWorld implements World {
|
|||
public Arrow spawnArrow(Location loc, Vector velocity, float speed,
|
||||
float spread) {
|
||||
EntityArrow arrow = new EntityArrow(world);
|
||||
arrow.c(loc.getX(), loc.getY(), loc.getZ());
|
||||
arrow.c(loc.getX(), loc.getY(), loc.getZ(), 0, 0);
|
||||
world.a(arrow);
|
||||
arrow.a(velocity.getX(), velocity.getY(), velocity.getZ(), speed, spread);
|
||||
return new CraftArrow(world.getServer(), arrow);
|
||||
|
|
Loading…
Reference in a new issue