summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityFish.patch
blob: c4b05830e3a632c2f4f54da3d34f85e261cea4b5 (plain)
1
2
3
4
5
6
7
8
9
10
--- a/net/minecraft/server/EntityFish.java
+++ b/net/minecraft/server/EntityFish.java
@@ -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
     }
 
     public void b(NBTTagCompound nbttagcompound) {