diff options
author | GJ <gjmcferrin@gmail.com> | 2014-04-28 12:45:02 -0400 |
---|---|---|
committer | Nate Mortensen <nate.richard.mortensen@gmail.com> | 2014-04-29 17:29:07 -0600 |
commit | c3e4767a793f2a77ddba1aabf15dbaa38798e9a2 (patch) | |
tree | d074082f2466b7e997a2448b8cd6dbf365cdb069 /src | |
parent | 5195513866dda421bcd79adf14eaf991ae627ffd (diff) | |
download | craftbukkit-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')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityChicken.java | 5 |
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; |