Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
Fix arrow sound playing at wrong entity
Browse files Browse the repository at this point in the history
Should fix #97
  • Loading branch information
windcolor-dev committed Jul 15, 2022
1 parent 249adcd commit 432bf86
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public void t_() {
}
}

world.makeSound(this.shooter, "random.bowhit", 1.0F,
world.makeSound(movingobjectposition.entity, "random.bowhit", 1.0F,
1.2F / (this.random.nextFloat() * 0.2F + 0.9F));
if (!(movingobjectposition.entity instanceof EntityEnderman)) {
this.die();
Expand Down Expand Up @@ -353,7 +353,7 @@ public void t_() {
this.locX -= this.motX / f1 * 0.05000000074505806D;
this.locY -= this.motY / f1 * 0.05000000074505806D;
this.locZ -= this.motZ / f1 * 0.05000000074505806D;
world.makeSound(this.shooter, "random.bowhit", 1.0F,
world.makeSound(movingobjectposition.entity, "random.bowhit", 1.0F,
1.2F / (this.random.nextFloat() * 0.2F + 0.9F));
this.inGround = true;
this.shake = 7;
Expand Down

0 comments on commit 432bf86

Please sign in to comment.