summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalSit.patch
blob: e6ee998e68ce0a5c3c3932305b6a9d8c44a078be (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.V()) {
             return false;
         } else if (!this.entity.onGround) {