From 3b375b354eb031c0715b395558ba676bb2040bae Mon Sep 17 00:00:00 2001 From: md_5 Date: Tue, 8 Mar 2016 17:58:52 +1100 Subject: SPIGOT-1831: Chicken / sheep not dropping items correctly. --- nms-patches/EntityChicken.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'nms-patches/EntityChicken.patch') diff --git a/nms-patches/EntityChicken.patch b/nms-patches/EntityChicken.patch index fdad0420..f40dd021 100644 --- a/nms-patches/EntityChicken.patch +++ b/nms-patches/EntityChicken.patch @@ -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; + } + -- cgit v1.2.3