Skip to content

Commit

Permalink
Only add goat horn once
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxplay committed Jan 22, 2025
1 parent 30fdfb1 commit 3e8b5d6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@
this.playEatingSound();
}

@@ -350,7 +_,7 @@
@@ -349,8 +_,7 @@
double d1 = Mth.randomBetween(this.random, 0.3F, 0.7F);
double d2 = Mth.randomBetween(this.random, -0.2F, 0.2F);
ItemEntity itemEntity = new ItemEntity(this.level(), vec3.x(), vec3.y(), vec3.z(), itemStack, d, d1, d2);
this.level().addFreshEntity(itemEntity);
- this.level().addFreshEntity(itemEntity);
- return true;
+ return this.spawnAtLocation((net.minecraft.server.level.ServerLevel) this.level(), itemEntity) != null; // Paper - Call EntityDropItemEvent
}
Expand Down

0 comments on commit 3e8b5d6

Please sign in to comment.