Revert bad change to PathfinderGoalSit causing all cats to sit
This commit is contained in:
parent
648196070e
commit
0d0b1e5dce
@ -1,11 +1,11 @@
|
|||||||
--- a/net/minecraft/world/entity/ai/goal/PathfinderGoalSit.java
|
--- a/net/minecraft/world/entity/ai/goal/PathfinderGoalSit.java
|
||||||
+++ b/net/minecraft/world/entity/ai/goal/PathfinderGoalSit.java
|
+++ b/net/minecraft/world/entity/ai/goal/PathfinderGoalSit.java
|
||||||
@@ -21,7 +21,7 @@
|
@@ -22,7 +22,7 @@
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean canUse() {
|
public boolean canUse() {
|
||||||
- if (!this.mob.isTame()) {
|
if (!this.mob.isTame()) {
|
||||||
+ if (false && !this.mob.isTame()) { // CraftBukkit - Allow sitting for wild animals
|
- return false;
|
||||||
return false;
|
+ return this.mob.isOrderedToSit() && this.mob.getTarget() == null; // CraftBukkit - Allow sitting for wild animals
|
||||||
} else if (this.mob.isInWaterOrBubble()) {
|
} else if (this.mob.isInWaterOrBubble()) {
|
||||||
return false;
|
return false;
|
||||||
|
} else if (!this.mob.onGround()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user