2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EntityChicken.java
|
|
|
|
+++ b/net/minecraft/server/EntityChicken.java
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -44,6 +44,11 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
2016-02-29 22:32:46 +01:00
|
|
|
public void n() {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (this.isChickenJockey()) {
|
|
|
|
+ this.persistent = !this.isTypeNotPersistent();
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2016-02-29 22:32:46 +01:00
|
|
|
super.n();
|
2016-11-17 02:41:03 +01:00
|
|
|
this.bA = this.bw;
|
|
|
|
this.by = this.bx;
|
2016-05-10 13:47:39 +02:00
|
|
|
@@ -61,7 +66,9 @@
|
2016-11-17 02:41:03 +01:00
|
|
|
this.bw += this.bB * 2.0F;
|
|
|
|
if (!this.world.isClientSide && !this.isBaby() && !this.isChickenJockey() && --this.bC <= 0) {
|
|
|
|
this.a(SoundEffects.ac, 1.0F, (this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F);
|
2016-03-08 07:58:52 +01:00
|
|
|
+ this.forceDrops = true; // CraftBukkit
|
|
|
|
this.a(Items.EGG, 1);
|
|
|
|
+ this.forceDrops = false; // CraftBukkit
|
2016-11-17 02:41:03 +01:00
|
|
|
this.bC = this.random.nextInt(6000) + 6000;
|
2016-03-08 07:58:52 +01:00
|
|
|
}
|
|
|
|
|