mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:46:57 +01:00
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
|
||||
+++ b/net/minecraft/world/entity/ai/goal/PathfinderGoalSit.java
|
||||
@@ -21,7 +21,7 @@
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
@Override
|
||||
public boolean canUse() {
|
||||
- if (!this.mob.isTame()) {
|
||||
+ if (false && !this.mob.isTame()) { // CraftBukkit - Allow sitting for wild animals
|
||||
return false;
|
||||
if (!this.mob.isTame()) {
|
||||
- return false;
|
||||
+ return this.mob.isOrderedToSit() && this.mob.getTarget() == null; // CraftBukkit - Allow sitting for wild animals
|
||||
} else if (this.mob.isInWaterOrBubble()) {
|
||||
return false;
|
||||
} else if (!this.mob.onGround()) {
|
||||
|
|
Loading…
Reference in a new issue