2020-04-02 23:07:06 +02:00
|
|
|
From fd673275e5f2f533af7c23ca18c3a13bbf6cadaf Mon Sep 17 00:00:00 2001
|
2019-04-28 01:23:53 +02: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-04-02 23:07:06 +02:00
|
|
|
index 0624114553..d9a7b8ac1e 100644
|
2019-04-28 01:23:53 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityOcelot.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityOcelot.java
|
2019-12-12 00:43:22 +01:00
|
|
|
@@ -81,7 +81,7 @@ public class EntityOcelot extends EntityAnimal {
|
2019-04-28 01:23:53 +02: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
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
--
|
2020-04-02 23:07:06 +02:00
|
|
|
2.25.1
|
2019-04-28 01:23:53 +02:00
|
|
|
|