Paper/nms-patches/EntityFish.patch

20 lines
546 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
2020-06-25 02:00:00 +02:00
@@ -32,7 +32,7 @@
2018-10-07 01:08:58 +02:00
2019-04-23 04:00:00 +02:00
@Override
public boolean isTypeNotPersistent(double d0) {
2018-10-07 01:08:58 +02:00
- return !this.isFromBucket() && !this.hasCustomName();
+ return true; // CraftBukkit
}
2019-04-23 04:00:00 +02:00
@Override
2020-06-25 02:00:00 +02:00
@@ -52,6 +52,7 @@
2018-07-23 02:01:46 +02:00
2018-08-26 04:00:00 +02:00
public void setFromBucket(boolean flag) {
2019-04-23 04:00:00 +02:00
this.datawatcher.set(EntityFish.FROM_BUCKET, 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
}
2019-04-23 04:00:00 +02:00
@Override