summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalSit.patch
blob: 80597cfeff315c189b5139875b45bc4683f3ae74 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/net/minecraft/server/PathfinderGoalSit.java
+++ b/net/minecraft/server/PathfinderGoalSit.java
@@ -12,7 +12,7 @@
 
     public boolean a() {
         if (!this.entity.isTamed()) {
-            return false;
+            return this.willSit && this.entity.getGoalTarget() == null; // CraftBukkit - Allow sitting for wild animals
         } else if (this.entity.isInWater()) {
             return false;
         } else if (!this.entity.onGround) {