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