Paper/nms-patches/EntityFish.patch

20 lines
587 B
Diff
Raw Normal View History

2018-07-23 02:01:46 +02:00
--- a/net/minecraft/server/EntityFish.java
+++ b/net/minecraft/server/EntityFish.java
2018-10-07 01:08:58 +02:00
@@ -37,7 +37,7 @@
}
protected boolean isTypeNotPersistent() {
- return !this.isFromBucket() && !this.hasCustomName();
+ return true; // CraftBukkit
}
public boolean l() {
2018-08-26 04:00:00 +02:00
@@ -71,6 +71,7 @@
2018-07-23 02:01:46 +02:00
2018-08-26 04:00:00 +02:00
public void setFromBucket(boolean flag) {
2018-07-23 02:01:46 +02:00
this.datawatcher.set(EntityFish.b, Boolean.valueOf(flag));
2018-10-07 01:08:58 +02:00
+ this.persistent = this.isPersistent(); // CraftBukkit - SPIGOT-4106 update persistence
2018-07-23 02:01:46 +02:00
}
public void b(NBTTagCompound nbttagcompound) {