diff options
Diffstat (limited to 'patches/server/0356-Add-villager-reputation-API.patch')
-rw-r--r-- | patches/server/0356-Add-villager-reputation-API.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/patches/server/0356-Add-villager-reputation-API.patch b/patches/server/0356-Add-villager-reputation-API.patch index 5043e90bdc..cf69cd346a 100644 --- a/patches/server/0356-Add-villager-reputation-API.patch +++ b/patches/server/0356-Add-villager-reputation-API.patch @@ -57,10 +57,10 @@ index f06a5f0d9c5c877ddf963254d3124f5fe2d67282..aa32804bc9affe9a615d3ffaa513f6f0 static record GossipEntry(UUID target, GossipType type, int value) { diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java -index 423f6fcaf49252553d2285308633f13e2427b607..00fb708bce2c79817cd9fccadec72f07f0d26317 100644 +index 957c9ec21c7a9888b3038402b0111c68f816f968..52312bec840322d32ea845f0bd64eb3ca1380854 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftVillager.java -@@ -18,6 +18,13 @@ import org.bukkit.entity.Villager; +@@ -20,6 +20,13 @@ import org.bukkit.entity.Villager; import org.bukkit.entity.ZombieVillager; import org.bukkit.event.entity.CreatureSpawnEvent; @@ -74,8 +74,8 @@ index 423f6fcaf49252553d2285308633f13e2427b607..00fb708bce2c79817cd9fccadec72f07 public class CraftVillager extends CraftAbstractVillager implements Villager { public CraftVillager(CraftServer server, net.minecraft.world.entity.npc.Villager entity) { -@@ -176,4 +183,45 @@ public class CraftVillager extends CraftAbstractVillager implements Villager { - .getOptional(CraftNamespacedKey.toMinecraft(bukkit.getKey())).orElseThrow(); +@@ -298,4 +305,45 @@ public class CraftVillager extends CraftAbstractVillager implements Villager { + return this.getKey().hashCode(); } } + |