summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
authorGJ <gjmcferrin@gmail.com>2014-04-28 12:45:02 -0400
committerNate Mortensen <nate.richard.mortensen@gmail.com>2014-04-29 17:29:07 -0600
commitc3e4767a793f2a77ddba1aabf15dbaa38798e9a2 (patch)
treed074082f2466b7e997a2448b8cd6dbf365cdb069 /src/main/java/net/minecraft
parent5195513866dda421bcd79adf14eaf991ae627ffd (diff)
downloadcraftbukkit-c3e4767a793f2a77ddba1aabf15dbaa38798e9a2.tar
craftbukkit-c3e4767a793f2a77ddba1aabf15dbaa38798e9a2.tar.gz
craftbukkit-c3e4767a793f2a77ddba1aabf15dbaa38798e9a2.tar.lz
craftbukkit-c3e4767a793f2a77ddba1aabf15dbaa38798e9a2.tar.xz
craftbukkit-c3e4767a793f2a77ddba1aabf15dbaa38798e9a2.zip
[Bleeding] Recheck persistence for chicken jockeys each tick. Fixes BUKKIT-5577
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/EntityChicken.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityChicken.java b/src/main/java/net/minecraft/server/EntityChicken.java
index 9a6daff4..f7438b9c 100644
--- a/src/main/java/net/minecraft/server/EntityChicken.java
+++ b/src/main/java/net/minecraft/server/EntityChicken.java
@@ -37,6 +37,11 @@ public class EntityChicken extends EntityAnimal {
}
public void e() {
+ // CraftBukkit start
+ if (this.bZ()) { // should be isChickenJockey
+ this.persistent = !this.isTypeNotPersistent();
+ }
+ // CraftBukkit end
super.e();
this.bs = this.bp;
this.br = this.bq;