Revert bad change to PathfinderGoalSit causing all cats to sit

This commit is contained in:
md_5 2023-07-01 20:56:18 +10:00
parent 648196070e
commit 0d0b1e5dce
No known key found for this signature in database
GPG Key ID: E8E901AC7C617C11

View File

@ -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()) {