2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/entity/animal/EntityChicken.java
|
|
|
|
+++ b/net/minecraft/world/entity/animal/EntityChicken.java
|
2021-06-11 07:00:00 +02:00
|
|
|
@@ -75,6 +75,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()) {
|
2021-07-22 01:53:26 +02:00
|
|
|
+ this.setPersistenceRequired(!this.isTypeNotPersistent(0));
|
2014-11-25 22:32:16 +01:00
|
|
|
+ }
|
|
|
|
+ // CraftBukkit end
|
2018-12-13 01:00:00 +01:00
|
|
|
super.movementTick();
|
2021-06-11 07:00:00 +02:00
|
|
|
this.oFlap = this.flap;
|
|
|
|
this.oFlapSpeed = this.flapSpeed;
|
|
|
|
@@ -94,7 +99,9 @@
|
|
|
|
this.flap += this.flapping * 2.0F;
|
|
|
|
if (!this.level.isClientSide && this.isAlive() && !this.isBaby() && !this.isChickenJockey() && --this.eggTime <= 0) {
|
|
|
|
this.playSound(SoundEffects.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
|
2021-06-11 07:00:00 +02:00
|
|
|
this.eggTime = this.random.nextInt(6000) + 6000;
|
2016-03-08 07:58:52 +01:00
|
|
|
}
|
|
|
|
|