mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
2f34301581
Upstream has released updates that appears to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: 7361a62e SPIGOT-5641: Add Block.getDrops(ItemStack, Entity) 1dc91b15 Add specific notes about what is not API 2b05ef88 #484: Allow statistics to be accessed for offline players CraftBukkit Changes:f7d6ad53
SPIGOT-5603: Use LootContext#lootingModifier in CraftLootTable5838285d
SPIGOT-5657: BlockPlaceEvent not cancelling for tripwire hooksf325b9be
SPIGOT-5641: Add Block.getDrops(ItemStack, Entity)e25a2272
Fix some formatting in CraftHumanEntity498540e0
Add Merchant slot delegateb2de47d5
SPIGOT-5621: Add missing container types for opening InventoryViewaa3a2f27
#645: Allow statistics to be accessed for offline players2122c0b1
#649: CraftBell should implement Bell
45 lines
2.1 KiB
Diff
45 lines
2.1 KiB
Diff
From a771840c788dc386f8900388be089f64ee09d3bc Mon Sep 17 00:00:00 2001
|
|
From: Shane Freeder <theboyetronic@gmail.com>
|
|
Date: Fri, 21 Feb 2020 18:44:28 +0000
|
|
Subject: [PATCH] Backport fix for MC-167561
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/EntityWolf.java b/src/main/java/net/minecraft/server/EntityWolf.java
|
|
index db15d5e0a2..eec1e26b6e 100644
|
|
--- a/src/main/java/net/minecraft/server/EntityWolf.java
|
|
+++ b/src/main/java/net/minecraft/server/EntityWolf.java
|
|
@@ -296,7 +296,14 @@ public class EntityWolf extends EntityTameableAnimal {
|
|
boolean flag = super.a(entityhuman, enumhand);
|
|
|
|
if (!flag || this.isBaby()) {
|
|
- this.goalSit.setSitting(!this.isSitting());
|
|
+ //this.goalSit.setSitting(!this.isSitting()); // Paper start - copied from below
|
|
+ if (this.i((EntityLiving) entityhuman) && !this.i(itemstack)) {
|
|
+ this.goalSit.setSitting(!this.isSitting());
|
|
+ this.jumping = false;
|
|
+ this.navigation.o();
|
|
+ this.setGoalTarget((EntityLiving) null, TargetReason.FORGOT_TARGET, true); // CraftBukkit - reason
|
|
+ }
|
|
+ // Paper end - copied from below
|
|
}
|
|
|
|
return flag;
|
|
@@ -313,12 +320,14 @@ public class EntityWolf extends EntityTameableAnimal {
|
|
return true;
|
|
}
|
|
|
|
+ /* Paper start - Move into above
|
|
if (this.i((EntityLiving) entityhuman) && !this.i(itemstack)) {
|
|
this.goalSit.setSitting(!this.isSitting());
|
|
this.jumping = false;
|
|
this.navigation.o();
|
|
this.setGoalTarget((EntityLiving) null, TargetReason.FORGOT_TARGET, true); // CraftBukkit - reason
|
|
}
|
|
+ */ // Paper end
|
|
} else if (item == Items.BONE && !this.isAngry()) {
|
|
if (!entityhuman.abilities.canInstantlyBuild) {
|
|
itemstack.subtract(1);
|
|
--
|
|
2.25.1
|
|
|