mirror of
https://github.com/barkeser2002/Tenet.git
synced 2026-09-25 12:26:05 +03:00
12 lines
504 B
Diff
12 lines
504 B
Diff
--- a/net/minecraft/world/entity/ai/goal/PathfinderGoalSit.java
|
|
+++ b/net/minecraft/world/entity/ai/goal/PathfinderGoalSit.java
|
|
@@ -22,7 +22,7 @@
|
|
@Override
|
|
public boolean canUse() {
|
|
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()) {
|