3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-24 07:10:10 +01:00
Paper/nms-patches/EntityFish.patch

20 Zeilen
546 B
Diff

2018-07-23 02:01:46 +02:00
--- a/net/minecraft/server/EntityFish.java
+++ b/net/minecraft/server/EntityFish.java
2019-06-21 12:00:00 +02:00
@@ -34,7 +34,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
2019-06-21 12:00:00 +02:00
@@ -54,6 +54,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