2020-05-06 09:48:49 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2019-04-27 23:23:53 +00:00
|
|
|
From: BillyGalbreath <Blake.Galbreath@GMail.com>
|
|
|
|
Date: Mon, 31 Jul 2017 01:54:40 -0500
|
|
|
|
Subject: [PATCH] Ocelot despawns should honor nametags and leash
|
|
|
|
|
|
|
|
|
2021-03-16 07:19:45 +00:00
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/animal/EntityOcelot.java b/src/main/java/net/minecraft/world/entity/animal/EntityOcelot.java
|
|
|
|
index b0296cef410aa5af42dcf89217dd8853f3800663..f3e9c73f28584bcccd6f82d8974eabe4b4a892fa 100644
|
|
|
|
--- a/src/main/java/net/minecraft/world/entity/animal/EntityOcelot.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/animal/EntityOcelot.java
|
|
|
|
@@ -128,7 +128,7 @@ public class EntityOcelot extends EntityAnimal {
|
2019-04-27 23:23:53 +00:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isTypeNotPersistent(double d0) {
|
|
|
|
- return !this.isTrusting() /*&& this.ticksLived > 2400*/; // CraftBukkit
|
|
|
|
+ return !this.isTrusting() && !this.hasCustomName() && !this.isLeashed() /*&& this.ticksLived > 2400*/; // CraftBukkit // Paper - honor name and leash
|
|
|
|
}
|
|
|
|
|
2020-08-25 02:22:08 +00:00
|
|
|
public static AttributeProvider.Builder eK() {
|