mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 23:38:25 +01:00
Fix wild wolves not considering bones interesting (#9579)
This commit is contained in:
parent
93cf3eb832
commit
a2002a76b8
1 changed files with 16 additions and 0 deletions
|
@ -51,6 +51,9 @@ https://bugs.mojang.com/browse/MC-123848
|
|||
https://bugs.mojang.com/browse/MC-264285
|
||||
Fix unbreakable flint and steel being consumed when igniting creepers
|
||||
|
||||
https://bugs.mojang.com/browse/MC-84789
|
||||
Fix wild wolves not considering bones interesting
|
||||
|
||||
Co-authored-by: William Blake Galbreath <blake.galbreath@gmail.com>
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/core/dispenser/DispenseItemBehavior.java b/src/main/java/net/minecraft/core/dispenser/DispenseItemBehavior.java
|
||||
|
@ -147,6 +150,19 @@ index effe4c4fb37fe13aece70cdef4966047d4719af9..7152674d3f3fb98198585cb5ece2bb88
|
|||
|
||||
default SoundEvent getSaddleSoundEvent() {
|
||||
return SoundEvents.HORSE_SADDLE;
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/ai/goal/BegGoal.java b/src/main/java/net/minecraft/world/entity/ai/goal/BegGoal.java
|
||||
index 9a46007245399481fb6e749d95e9e4791e799250..2afca5652541c9166278f8f2590ddb81003ae579 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/ai/goal/BegGoal.java
|
||||
+++ b/src/main/java/net/minecraft/world/entity/ai/goal/BegGoal.java
|
||||
@@ -65,7 +65,7 @@ public class BegGoal extends Goal {
|
||||
private boolean playerHoldingInteresting(Player player) {
|
||||
for(InteractionHand interactionHand : InteractionHand.values()) {
|
||||
ItemStack itemStack = player.getItemInHand(interactionHand);
|
||||
- if (this.wolf.isTame() && itemStack.is(Items.BONE)) {
|
||||
+ if (!this.wolf.isTame() && itemStack.is(Items.BONE)) { // Paper - Fix MC-84789
|
||||
return true;
|
||||
}
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/entity/ai/goal/BreakDoorGoal.java b/src/main/java/net/minecraft/world/entity/ai/goal/BreakDoorGoal.java
|
||||
index 784a894688f98f9d0368a36d456c5c94e1ee3695..a85885ee51df585fa11ae9f8fcd67ff2a71c5a18 100644
|
||||
--- a/src/main/java/net/minecraft/world/entity/ai/goal/BreakDoorGoal.java
|
||||
|
|
Loading…
Reference in a new issue