PaperMC/nms-patches/EntityFish.patch

20 lines
581 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-22 21:00:00 +02:00
@@ -29,7 +29,7 @@
2018-10-07 01:08:58 +02:00
}
2018-10-22 21:00:00 +02:00
public boolean isTypeNotPersistent() {
2018-10-07 01:08:58 +02:00
- return !this.isFromBucket() && !this.hasCustomName();
+ return true; // CraftBukkit
}
2018-10-22 21:00:00 +02:00
public int dg() {
@@ -47,6 +47,7 @@
2018-07-23 02:01:46 +02:00
2018-08-26 04:00:00 +02:00
public void setFromBucket(boolean flag) {
2018-10-22 21:00:00 +02:00
this.datawatcher.set(EntityFish.a, 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) {