Archiviert
13
0
Dieses Repository wurde am 2024-12-25 archiviert. Du kannst Dateien ansehen und es klonen, aber nicht pushen oder Issues/Pull-Requests öffnen.
Paper-Old/nms-patches/EntityChicken.patch

25 Zeilen
866 B
Diff

2015-05-25 12:37:24 +02:00
--- a/net/minecraft/server/EntityChicken.java
+++ b/net/minecraft/server/EntityChicken.java
2016-05-10 13:47:39 +02:00
@@ -44,6 +44,11 @@
}
2016-02-29 22:32:46 +01:00
public void n() {
+ // CraftBukkit start
+ if (this.isChickenJockey()) {
+ this.persistent = !this.isTypeNotPersistent();
+ }
+ // CraftBukkit end
2016-02-29 22:32:46 +01:00
super.n();
2016-06-09 03:43:49 +02:00
this.bB = this.bx;
this.bz = this.by;
2016-05-10 13:47:39 +02:00
@@ -61,7 +66,9 @@
2016-06-09 03:43:49 +02:00
this.bx += this.bC * 2.0F;
if (!this.world.isClientSide && !this.isBaby() && !this.isChickenJockey() && --this.bD <= 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
2016-06-09 03:43:49 +02:00
this.bD = this.random.nextInt(6000) + 6000;
}