PaperMC/nms-patches/EntityFish.patch

20 lines
564 B
Diff
Raw Normal View History

2018-07-23 10:01:46 +10:00
--- a/net/minecraft/server/EntityFish.java
+++ b/net/minecraft/server/EntityFish.java
2018-10-23 06:00:00 +11:00
@@ -29,7 +29,7 @@
2018-10-07 10:08:58 +11:00
}
2018-10-23 06:00:00 +11:00
public boolean isTypeNotPersistent() {
2018-10-07 10:08:58 +11:00
- return !this.isFromBucket() && !this.hasCustomName();
+ return true; // CraftBukkit
}
2018-10-23 06:00:00 +11:00
public int dg() {
@@ -47,6 +47,7 @@
2018-07-23 10:01:46 +10:00
2018-08-26 12:00:00 +10:00
public void setFromBucket(boolean flag) {
2018-12-06 10:00:00 +11:00
this.datawatcher.set(EntityFish.a, flag);
2018-10-07 10:08:58 +11:00
+ this.persistent = this.isPersistent(); // CraftBukkit - SPIGOT-4106 update persistence
2018-07-23 10:01:46 +10:00
}
public void b(NBTTagCompound nbttagcompound) {