Revert bad change to PathfinderGoalSit causing all cats to sit
By: md_5 <git@md-5.net>
This commit is contained in:
parent
546827e94d
commit
7f5ff95fe4
1 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue