aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorWilliam Blake Galbreath <[email protected]>2022-10-27 19:53:16 -0500
committerGitHub <[email protected]>2022-10-27 19:53:16 -0500
commitb743144a12c4239a09206e611e3f3363732404d7 (patch)
treee1f1273325f64066273a1ce5c8acbc514a0c7782
parent8a4b752fe2cbf2996802e92e1664242c6dc5ec08 (diff)
downloadPaper-b743144a12c4239a09206e611e3f3363732404d7.tar.gz
Paper-b743144a12c4239a09206e611e3f3363732404d7.zip
Fix MC-147659 (#8423)
-rw-r--r--patches/server/0917-Fix-a-bunch-of-vanilla-bugs.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/server/0917-Fix-a-bunch-of-vanilla-bugs.patch b/patches/server/0917-Fix-a-bunch-of-vanilla-bugs.patch
index ff0ed12381..c217eb6221 100644
--- a/patches/server/0917-Fix-a-bunch-of-vanilla-bugs.patch
+++ b/patches/server/0917-Fix-a-bunch-of-vanilla-bugs.patch
@@ -18,6 +18,12 @@ https://bugs.mojang.com/browse/MC-244739
https://bugs.mojang.com/browse/MC-243057
ignore furnace fuel slot in recipe book click
+https://bugs.mojang.com/browse/MC-147659
+ Some witch huts spawn the incorrect cat
+ Note: Marked as Won't Fix, makes 0 sense
+
+Co-authored-by: William Blake Galbreath <[email protected]>
+
diff --git a/src/main/java/net/minecraft/server/commands/DeOpCommands.java b/src/main/java/net/minecraft/server/commands/DeOpCommands.java
index cca2618d90306eed9894c5fa7b6ed96b68210688..10769c60bd53438d44fbc6192667acdf4cc95594 100644
--- a/src/main/java/net/minecraft/server/commands/DeOpCommands.java
@@ -60,6 +66,20 @@ index c17d9a7cb69d3b6ea6e17b689921fa239db3552b..a4690391df0aa26abea1ad92e6143eb1
this.level.playSound((Player) null, (Entity) this, this.getEatingSound(itemstack), SoundSource.NEUTRAL, 1.0F, Mth.randomBetween(this.level.random, 0.8F, 1.2F));
}
+diff --git a/src/main/java/net/minecraft/world/entity/npc/CatSpawner.java b/src/main/java/net/minecraft/world/entity/npc/CatSpawner.java
+index 8808cb9f5df43d781cbb9c7943ff2f222e3a6969..f1315693751cd1058620fae52816f312921b50a4 100644
+--- a/src/main/java/net/minecraft/world/entity/npc/CatSpawner.java
++++ b/src/main/java/net/minecraft/world/entity/npc/CatSpawner.java
+@@ -87,8 +87,8 @@ public class CatSpawner implements CustomSpawner {
+ if (cat == null) {
+ return 0;
+ } else {
++ cat.moveTo(pos, 0.0F, 0.0F); // Paper - move up - Fix MC-147659
+ cat.finalizeSpawn(world, world.getCurrentDifficultyAt(pos), MobSpawnType.NATURAL, (SpawnGroupData)null, (CompoundTag)null);
+- cat.moveTo(pos, 0.0F, 0.0F);
+ world.addFreshEntityWithPassengers(cat);
+ return 1;
+ }
diff --git a/src/main/java/net/minecraft/world/entity/raid/Raids.java b/src/main/java/net/minecraft/world/entity/raid/Raids.java
index fa8fcdfea51a35e4a482d3d7b18159099da62706..feb89eb69994bdd1d2f95d2b9992e69251b2bee7 100644
--- a/src/main/java/net/minecraft/world/entity/raid/Raids.java