mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-11 09:23:42 +01:00
24 lines
866 B
Diff
24 lines
866 B
Diff
--- a/net/minecraft/server/EntityChicken.java
|
|
+++ b/net/minecraft/server/EntityChicken.java
|
|
@@ -44,6 +44,11 @@
|
|
}
|
|
|
|
public void n() {
|
|
+ // CraftBukkit start
|
|
+ if (this.isChickenJockey()) {
|
|
+ this.persistent = !this.isTypeNotPersistent();
|
|
+ }
|
|
+ // CraftBukkit end
|
|
super.n();
|
|
this.bA = this.bw;
|
|
this.by = this.bx;
|
|
@@ -61,7 +66,9 @@
|
|
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);
|
|
+ this.forceDrops = true; // CraftBukkit
|
|
this.a(Items.EGG, 1);
|
|
+ this.forceDrops = false; // CraftBukkit
|
|
this.bC = this.random.nextInt(6000) + 6000;
|
|
}
|
|
|