From 19afa58c90677c73945b8b7498230ceae019a81c Mon Sep 17 00:00:00 2001 From: BillyGalbreath <BillyGalbreath@users.noreply.github.com> Date: Mon, 7 Aug 2017 22:26:44 -0500 Subject: [PATCH] Ocelot despawns should honor nametags and leash (#821) --- ...awns-should-honor-nametags-and-leash.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Spigot-Server-Patches/Ocelot-despawns-should-honor-nametags-and-leash.patch diff --git a/Spigot-Server-Patches/Ocelot-despawns-should-honor-nametags-and-leash.patch b/Spigot-Server-Patches/Ocelot-despawns-should-honor-nametags-and-leash.patch new file mode 100644 index 0000000000..429792bea3 --- /dev/null +++ b/Spigot-Server-Patches/Ocelot-despawns-should-honor-nametags-and-leash.patch @@ -0,0 +1,20 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: BillyGalbreath <Blake.Galbreath@GMail.com> +Date: Mon, 31 Jul 2017 01:54:40 -0500 +Subject: [PATCH] Ocelot despawns should honor nametags and leash + + +diff --git a/src/main/java/net/minecraft/server/EntityOcelot.java b/src/main/java/net/minecraft/server/EntityOcelot.java +index 5a76821e..858bbef5 100644 +--- a/src/main/java/net/minecraft/server/EntityOcelot.java ++++ b/src/main/java/net/minecraft/server/EntityOcelot.java +@@ -0,0 +0,0 @@ public class EntityOcelot extends EntityTameableAnimal { + } + + protected boolean isTypeNotPersistent() { +- return !this.isTamed() /*&& this.ticksLived > 2400*/; // CraftBukkit ++ return !this.isTamed() && !this.hasCustomName() && !this.isLeashed() /*&& this.ticksLived > 2400*/; // CraftBukkit (ticks lived) - Paper (honor name and leash) + } + + protected void initAttributes() { +-- \ No newline at end of file