2015-05-25 12:37:24 +02:00
|
|
|
--- a/net/minecraft/server/EntityChicken.java
|
|
|
|
+++ b/net/minecraft/server/EntityChicken.java
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -43,6 +43,11 @@
|
2014-11-25 22:32:16 +01:00
|
|
|
|
2019-04-23 04:00:00 +02:00
|
|
|
@Override
|
2018-12-13 01:00:00 +01:00
|
|
|
public void movementTick() {
|
2014-11-25 22:32:16 +01:00
|
|
|
+ // CraftBukkit start
|
|
|
|
+ if (this.isChickenJockey()) {
|
2019-04-23 04:00:00 +02:00
|
|
|
+ this.persistent = !this.isTypeNotPersistent(0);
|
2014-11-25 22:32:16 +01:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2018-12-13 01:00:00 +01:00
|
|
|
super.movementTick();
|
2019-12-10 23:00:00 +01:00
|
|
|
this.bz = this.bw;
|
|
|
|
this.by = this.bx;
|
2019-04-23 04:00:00 +02:00
|
|
|
@@ -62,7 +67,9 @@
|
2019-12-10 23:00:00 +01:00
|
|
|
this.bw += this.bA * 2.0F;
|
2019-04-23 04:00:00 +02:00
|
|
|
if (!this.world.isClientSide && this.isAlive() && !this.isBaby() && !this.isChickenJockey() && --this.eggLayTime <= 0) {
|
2018-07-15 02:00:00 +02:00
|
|
|
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
|
2019-04-23 04:00:00 +02:00
|
|
|
this.eggLayTime = this.random.nextInt(6000) + 6000;
|
2016-03-08 07:58:52 +01:00
|
|
|
}
|
|
|
|
|