mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
Fix wild wolves not considering bones interesting (#9579)
This commit is contained in:
parent
99edfc5832
commit
31138ad3fc
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
|
https://bugs.mojang.com/browse/MC-264285
|
||||||
Fix unbreakable flint and steel being consumed when igniting creepers
|
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>
|
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
|
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 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
|
|
||||||
default SoundEvent getSaddleSoundEvent() {
|
default SoundEvent getSaddleSoundEvent() {
|
||||||
return SoundEvents.HORSE_SADDLE;
|
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 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
|
||||||
|
@@ -0,0 +0,0 @@ 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
|
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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
--- a/src/main/java/net/minecraft/world/entity/ai/goal/BreakDoorGoal.java
|
--- a/src/main/java/net/minecraft/world/entity/ai/goal/BreakDoorGoal.java
|
||||||
|
|
Loading…
Reference in a new issue