2018-09-29 01:31:59 +02:00
|
|
|
From f257ecfad1be7ef00b623cc5c857bffb10641ce4 Mon Sep 17 00:00:00 2001
|
2017-08-08 05:26:44 +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
|
2018-08-26 20:11:49 +02:00
|
|
|
index 447e6c2d12..5431ef57ab 100644
|
2017-08-08 05:26:44 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/EntityOcelot.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/EntityOcelot.java
|
2018-07-18 02:08:13 +02:00
|
|
|
@@ -61,7 +61,7 @@ public class EntityOcelot extends EntityTameableAnimal {
|
2017-08-08 05:26:44 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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() {
|
|
|
|
--
|
2018-09-29 01:31:59 +02:00
|
|
|
2.19.0
|
2017-08-08 05:26:44 +02:00
|
|
|
|