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-11-18 03:45:18 +00:00
|
|
|
index c56369817a28ec2c1a82f869c40fc7cb8eeb49dd..7bd3fea6e0e478337c7f6400a941675eebba517b 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-08-25 02:22:08 +00:00
|
|
|
public static AttributeProvider.Builder eK() {
|