Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-15 02:50:09 +01:00
Fix wild wolves not considering bones interesting (#9579)
Dieser Commit ist enthalten in:
Ursprung
93cf3eb832
Commit
a2002a76b8
@ -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
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren