summaryrefslogtreecommitdiffstats
path: root/nms-patches/PathfinderGoalSit.patch
blob: 7b34452f86cc84629f894118463a56902f682b98 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ../work/decompile-8eb82bde//net/minecraft/server/PathfinderGoalSit.java	2014-11-28 11:22:56.130823159 +0000
+++ src/main/java/net/minecraft/server/PathfinderGoalSit.java	2014-11-28 11:01:54.000000000 +0000
@@ -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) {