mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
9d740b84b0
By: md_5 <git@md-5.net>
13 lines
726 B
Diff
13 lines
726 B
Diff
--- a/net/minecraft/world/entity/animal/EntityChicken.java
|
|
+++ b/net/minecraft/world/entity/animal/EntityChicken.java
|
|
@@ -96,7 +96,9 @@
|
|
this.flap += this.flapping * 2.0F;
|
|
if (!this.level().isClientSide && this.isAlive() && !this.isBaby() && !this.isChickenJockey() && --this.eggTime <= 0) {
|
|
this.playSound(SoundEffects.CHICKEN_EGG, 1.0F, (this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F);
|
|
+ this.forceDrops = true; // CraftBukkit
|
|
this.spawnAtLocation((IMaterial) Items.EGG);
|
|
+ this.forceDrops = false; // CraftBukkit
|
|
this.gameEvent(GameEvent.ENTITY_PLACE);
|
|
this.eggTime = this.random.nextInt(6000) + 6000;
|
|
}
|