2021-09-22 04:59:19 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Jake Potrebic <jake.m.potrebic@gmail.com>
|
|
|
|
Date: Fri, 13 Aug 2021 16:38:08 -0700
|
|
|
|
Subject: [PATCH] Mark fish and axolotls from buckets as persistent
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/animal/AbstractFish.java b/src/main/java/net/minecraft/world/entity/animal/AbstractFish.java
|
2021-11-25 08:10:26 +00:00
|
|
|
index 58428eebf24e328b3faf32ca473be8f19d4f6cca..3484defdfd5a487b11917310d7b1d1543291eee1 100644
|
2021-09-22 04:59:19 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/animal/AbstractFish.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/animal/AbstractFish.java
|
2021-11-25 08:10:26 +00:00
|
|
|
@@ -81,7 +81,7 @@ public abstract class AbstractFish extends WaterAnimal implements Bucketable {
|
2021-09-22 04:59:19 +00:00
|
|
|
@Override
|
|
|
|
public void setFromBucket(boolean fromBucket) {
|
|
|
|
this.entityData.set(AbstractFish.FROM_BUCKET, fromBucket);
|
|
|
|
- this.setPersistenceRequired(this.isPersistenceRequired()); // CraftBukkit - SPIGOT-4106 update persistence
|
2021-09-22 11:40:13 +00:00
|
|
|
+ this.setPersistenceRequired(fromBucket || this.isPersistenceRequired()); // CraftBukkit - SPIGOT-4106 update persistence // Paper - actually set as persistent
|
2021-09-22 04:59:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/animal/axolotl/Axolotl.java b/src/main/java/net/minecraft/world/entity/animal/axolotl/Axolotl.java
|
2022-01-23 00:59:56 +00:00
|
|
|
index c2d5798cac21afab5133ce086f60bf54fa1b97b6..a3ad957a9131168656b8e30c82d762c77e96ae6e 100644
|
2021-09-22 04:59:19 +00:00
|
|
|
--- a/src/main/java/net/minecraft/world/entity/animal/axolotl/Axolotl.java
|
|
|
|
+++ b/src/main/java/net/minecraft/world/entity/animal/axolotl/Axolotl.java
|
2022-01-23 00:59:56 +00:00
|
|
|
@@ -243,7 +243,7 @@ public class Axolotl extends Animal implements LerpingModel, Bucketable {
|
2021-09-22 04:59:19 +00:00
|
|
|
@Override
|
|
|
|
public void setFromBucket(boolean fromBucket) {
|
|
|
|
this.entityData.set(Axolotl.FROM_BUCKET, fromBucket);
|
|
|
|
- this.setPersistenceRequired(this.isPersistenceRequired()); // CraftBukkit - SPIGOT-4106 update persistence
|
2021-09-22 11:40:13 +00:00
|
|
|
+ this.setPersistenceRequired(fromBucket || this.isPersistenceRequired()); // CraftBukkit - SPIGOT-4106 update persistence // Paper - actually set as persistent
|
2021-09-22 04:59:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Nullable
|