Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Noah van der Aa <ndvdaa@gmail.com> | ||
Date: Wed, 15 Jun 2022 22:34:07 +0200 | ||
Subject: [PATCH] Fix MC-252439 | ||
|
||
|
||
diff --git a/src/main/java/net/minecraft/world/entity/monster/ZombieVillager.java b/src/main/java/net/minecraft/world/entity/monster/ZombieVillager.java | ||
index b75c0ff18aa7adb673fbb2b5ada7775dd8ac1e29..7fe5908020c4577c1e4d6c00af382cf536351d96 100644 | ||
--- a/src/main/java/net/minecraft/world/entity/monster/ZombieVillager.java | ||
+++ b/src/main/java/net/minecraft/world/entity/monster/ZombieVillager.java | ||
@@ -260,6 +260,7 @@ public class ZombieVillager extends Zombie implements VillagerDataHolder { | ||
|
||
entityvillager.setVillagerXp(this.villagerXp); | ||
entityvillager.finalizeSpawn(world, world.getCurrentDifficultyAt(entityvillager.blockPosition()), MobSpawnType.CONVERSION, (SpawnGroupData) null, (CompoundTag) null); | ||
+ entityvillager.refreshBrain(world); // Paper - Fix MC-252439 | ||
if (this.conversionStarter != null) { | ||
Player entityhuman = world.getPlayerByUUID(this.conversionStarter); | ||
|