From 5b93c39d4b5b3c27a8761e8ee3e765523ecc5f64 Mon Sep 17 00:00:00 2001 From: md_5 Date: Mon, 23 Jul 2018 10:01:46 +1000 Subject: [PATCH] SPIGOT-4106: Fish from buckets despawn --- nms-patches/EntityFish.patch | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 nms-patches/EntityFish.patch diff --git a/nms-patches/EntityFish.patch b/nms-patches/EntityFish.patch new file mode 100644 index 0000000000..9773a887c7 --- /dev/null +++ b/nms-patches/EntityFish.patch @@ -0,0 +1,10 @@ +--- a/net/minecraft/server/EntityFish.java ++++ b/net/minecraft/server/EntityFish.java +@@ -67,6 +67,7 @@ + + public void s(boolean flag) { + this.datawatcher.set(EntityFish.b, Boolean.valueOf(flag)); ++ this.persistent = !this.isTypeNotPersistent(); // CraftBukkit - SPIGOT-4106 update persistence + } + + public void b(NBTTagCompound nbttagcompound) {