summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityFish.patch
blob: 9773a887c78fd43aa19deb53d103f7f4fe3510ef (plain)
1
2
3
4
5
6
7
8
9
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) {