2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EntityChicken.java
|
|
|
|
+++ b/net/minecraft/server/EntityChicken.java
|
2018-07-15 02:00:00 +02:00
|
|
|
@@ -42,6 +42,11 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
}
|
|
|
|
|
2018-07-15 02:00:00 +02:00
|
|
|
public void k() {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (this.isChickenJockey()) {
|
|
|
|
+ this.persistent = !this.isTypeNotPersistent();
|
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2018-07-15 02:00:00 +02:00
|
|
|
super.k();
|
|
|
|
this.bG = this.bC;
|
|
|
|
this.bE = this.bD;
|
|
|
|
@@ -59,7 +64,9 @@
|
|
|
|
this.bC += this.bH * 2.0F;
|
|
|
|
if (!this.world.isClientSide && !this.isBaby() && !this.isChickenJockey() && --this.bI <= 0) {
|
|
|
|
this.a(SoundEffects.ENTITY_CHICKEN_EGG, 1.0F, (this.random.nextFloat() - this.random.nextFloat()) * 0.2F + 1.0F);
|
2016-03-08 07:58:52 +01:00
|
|
|
+ this.forceDrops = true; // CraftBukkit
|
2018-07-15 02:00:00 +02:00
|
|
|
this.a((IMaterial) Items.EGG);
|
2016-03-08 07:58:52 +01:00
|
|
|
+ this.forceDrops = false; // CraftBukkit
|
2018-07-15 02:00:00 +02:00
|
|
|
this.bI = this.random.nextInt(6000) + 6000;
|
2016-03-08 07:58:52 +01:00
|
|
|
}
|
|
|
|
|