diff options
Diffstat (limited to 'patch-remap/og/net/minecraft/world/entity/animal/EntityChicken.patch')
-rw-r--r-- | patch-remap/og/net/minecraft/world/entity/animal/EntityChicken.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/entity/animal/EntityChicken.patch b/patch-remap/og/net/minecraft/world/entity/animal/EntityChicken.patch new file mode 100644 index 0000000000..30e374f7f8 --- /dev/null +++ b/patch-remap/og/net/minecraft/world/entity/animal/EntityChicken.patch @@ -0,0 +1,12 @@ +--- a/net/minecraft/world/entity/animal/EntityChicken.java ++++ b/net/minecraft/world/entity/animal/EntityChicken.java +@@ -97,7 +97,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; + } |