mirror of
https://github.com/BX-Team/DivineMC.git
synced 2025-12-20 23:39:16 +00:00
Upstream has released updates that appear to apply and compile correctly Purpur Changes: PurpurMC/Purpur@c0f5e78 add default silverfish movement speed & attack damage attributes PurpurMC/Purpur@b82f693 configurable mob size attribute (#1538) PurpurMC/Purpur@e05f91b [ci skip] move import to config patch PurpurMC/Purpur@2ba7bee Updated Upstream (Paper)
35 lines
1.4 KiB
Diff
35 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: NONPLAYT <76615486+NONPLAYT@users.noreply.github.com>
|
|
Date: Sun, 16 Jul 2023 13:51:26 +0300
|
|
Subject: [PATCH] Fix MC-93018
|
|
|
|
Original post on Mojira: https://bugs.mojang.com/browse/MC-93018
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/entity/animal/Wolf.java b/src/main/java/net/minecraft/world/entity/animal/Wolf.java
|
|
index a2df7cf565157db2f8e0f0d33778c8d8dea1cd95..4c67bfb22a154dfabbe0ac6091199151e441534a 100644
|
|
--- a/src/main/java/net/minecraft/world/entity/animal/Wolf.java
|
|
+++ b/src/main/java/net/minecraft/world/entity/animal/Wolf.java
|
|
@@ -775,14 +775,17 @@ public class Wolf extends TamableAnimal implements NeutralMob, VariantHolder<Hol
|
|
public boolean canMate(Animal other) {
|
|
if (other == this) {
|
|
return false;
|
|
- } else if (!this.isTame()) {
|
|
- return false;
|
|
} else if (!(other instanceof Wolf)) {
|
|
return false;
|
|
} else {
|
|
- Wolf entitywolf = (Wolf) other;
|
|
-
|
|
- return !entitywolf.isTame() ? false : (entitywolf.isInSittingPose() ? false : this.isInLove() && entitywolf.isInLove());
|
|
+ // DivineMC start - Fix MC-93018
|
|
+ Wolf wolf = (Wolf) other;
|
|
+ if (wolf.isInSittingPose()) {
|
|
+ return false;
|
|
+ } else {
|
|
+ return this.isInLove() && wolf.isInLove();
|
|
+ }
|
|
+ // DivineMC end
|
|
}
|
|
}
|
|
|