From f800d80c45db6ae3d2eb28cf3cf1c50c894566d3 Mon Sep 17 00:00:00 2001 From: Nassim Jahnke Date: Sat, 26 Jun 2021 10:54:24 +0200 Subject: [PATCH] Fix chicken jockey chicken persistence (#6005) --- .../Fix-chicken-jockey-persistence.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 patches/server/Fix-chicken-jockey-persistence.patch diff --git a/patches/server/Fix-chicken-jockey-persistence.patch b/patches/server/Fix-chicken-jockey-persistence.patch new file mode 100644 index 0000000000..8e2a65182f --- /dev/null +++ b/patches/server/Fix-chicken-jockey-persistence.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Nassim Jahnke +Date: Sat, 26 Jun 2021 10:43:53 +0200 +Subject: [PATCH] Fix chicken jockey persistence + + +diff --git a/src/main/java/net/minecraft/world/entity/animal/Chicken.java b/src/main/java/net/minecraft/world/entity/animal/Chicken.java +index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644 +--- a/src/main/java/net/minecraft/world/entity/animal/Chicken.java ++++ b/src/main/java/net/minecraft/world/entity/animal/Chicken.java +@@ -0,0 +0,0 @@ public class Chicken extends Animal { + public void aiStep() { + // CraftBukkit start + if (this.isChickenJockey()) { +- this.persistenceRequired = !this.removeWhenFarAway(0); ++ ((Mob) this).persistenceRequired = !this.removeWhenFarAway(0); // Paper - fix remap by explicitly casting to Mob + } + // CraftBukkit end + super.aiStep();