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
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityOcelot.java b/src/main/java/net/minecraft/server/EntityOcelot.java
|
2020-06-25 13:11:48 +00:00
|
|
|
index a88f15546e5cad8da5b342162c05228bdbbf5aad..9c1f019f911a1b91bbfa431e1558dec790624050 100644
|
2019-04-27 23:23:53 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityOcelot.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityOcelot.java
|
2019-12-11 23:43:22 +00:00
|
|
|
@@ -81,7 +81,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-06-25 13:11:48 +00:00
|
|
|
public static AttributeProvider.Builder eL() {
|