From 8ab46ff7c68434c9be24f191ce0126b656a86a0d Mon Sep 17 00:00:00 2001 From: md_5 Date: Sun, 7 Oct 2018 10:08:58 +1100 Subject: SPIGOT-4368: Tweak fish persistence --- nms-patches/EntityFish.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'nms-patches/EntityFish.patch') diff --git a/nms-patches/EntityFish.patch b/nms-patches/EntityFish.patch index c4b05830..0fe7401b 100644 --- a/nms-patches/EntityFish.patch +++ b/nms-patches/EntityFish.patch @@ -1,10 +1,19 @@ --- a/net/minecraft/server/EntityFish.java +++ b/net/minecraft/server/EntityFish.java +@@ -37,7 +37,7 @@ + } + + protected boolean isTypeNotPersistent() { +- return !this.isFromBucket() && !this.hasCustomName(); ++ return true; // CraftBukkit + } + + public boolean l() { @@ -71,6 +71,7 @@ public void setFromBucket(boolean flag) { this.datawatcher.set(EntityFish.b, Boolean.valueOf(flag)); -+ this.persistent = !this.isTypeNotPersistent(); // CraftBukkit - SPIGOT-4106 update persistence ++ this.persistent = this.isPersistent(); // CraftBukkit - SPIGOT-4106 update persistence } public void b(NBTTagCompound nbttagcompound) { -- cgit v1.2.3