Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-24 15:20:11 +01:00
25 Zeilen
866 B
Diff
25 Zeilen
866 B
Diff
--- a/net/minecraft/server/EntityChicken.java
|
|
+++ b/net/minecraft/server/EntityChicken.java
|
|
@@ -43,6 +43,11 @@
|
|
}
|
|
|
|
public void n() {
|
|
+ // CraftBukkit start
|
|
+ if (this.isChickenJockey()) {
|
|
+ this.persistent = !this.isTypeNotPersistent();
|
|
+ }
|
|
+ // CraftBukkit end
|
|
super.n();
|
|
this.bz = this.bv;
|
|
this.bx = this.bw;
|
|
@@ -60,7 +65,9 @@
|
|
this.bv += this.bA * 2.0F;
|
|
if (!this.world.isClientSide && !this.isBaby() && !this.isChickenJockey() && --this.bB <= 0) {
|
|
this.a(SoundEffects.aa, 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.bB = this.random.nextInt(6000) + 6000;
|
|
}
|
|
|