SPIGOT-1831: Chicken / sheep not dropping items correctly.

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2016-03-08 17:58:52 +11:00
parent ced78d5d27
commit 1fec65442b
4 changed files with 42 additions and 24 deletions

View File

@@ -12,3 +12,13 @@
super.n();
this.bz = this.bv;
this.bx = this.bw;
@@ -60,7 +65,9 @@
this.bv += this.bA * 2.0F;
if (!this.world.isClientSide && !this.isBaby() && !this.isChickenJockey() && --this.bB <= 0) {
this.a(SoundEffects.aa, 1.0F, (this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F);
+ this.forceDrops = true; // CraftBukkit
this.a(Items.EGG, 1);
+ this.forceDrops = false; // CraftBukkit
this.bB = this.random.nextInt(6000) + 6000;
}