summaryrefslogtreecommitdiffstats
path: root/nms-patches/EntityFish.patch
blob: 5aeed7d678eb008f4ea04c75080d001a097e66f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/net/minecraft/server/EntityFish.java
+++ b/net/minecraft/server/EntityFish.java
@@ -29,7 +29,7 @@
     }
 
     public boolean isTypeNotPersistent() {
-        return !this.isFromBucket() && !this.hasCustomName();
+        return true; // CraftBukkit
     }
 
     public int dg() {
@@ -47,6 +47,7 @@
 
     public void setFromBucket(boolean flag) {
         this.datawatcher.set(EntityFish.a, Boolean.valueOf(flag));
+        this.persistent = this.isPersistent(); // CraftBukkit - SPIGOT-4106 update persistence
     }
 
     public void b(NBTTagCompound nbttagcompound) {