summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityChicken.patch
diff options
context:
space:
mode:
authormd_5 <git@md-5.net>2016-03-08 17:58:52 +1100
committermd_5 <git@md-5.net>2016-03-08 17:58:52 +1100
commit3b375b354eb031c0715b395558ba676bb2040bae (patch)
treecb265a49c91fb0b2df293aa48ae154c3e3c3445a /nms-patches/EntityChicken.patch
parentbf43ca62a65800d1c1ced66d2e018eea28058bf0 (diff)
downloadcraftbukkit-3b375b354eb031c0715b395558ba676bb2040bae.tar
craftbukkit-3b375b354eb031c0715b395558ba676bb2040bae.tar.gz
craftbukkit-3b375b354eb031c0715b395558ba676bb2040bae.tar.lz
craftbukkit-3b375b354eb031c0715b395558ba676bb2040bae.tar.xz
craftbukkit-3b375b354eb031c0715b395558ba676bb2040bae.zip
SPIGOT-1831: Chicken / sheep not dropping items correctly.
Diffstat (limited to 'nms-patches/EntityChicken.patch')
-rw-r--r--nms-patches/EntityChicken.patch10
1 files changed, 10 insertions, 0 deletions
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;
+ }
+