PaperMC/paper-server/nms-patches/PathfinderGoalSit.patch
CraftBukkit/Spigot 2443e912f8 Fix eating food whilst not facing a block
By: Thinkofdeath <thinkofdeath@spigotmc.org>
2014-11-28 11:23:19 +00:00

11 lines
554 B
Diff

--- ../work/decompile-8eb82bde//net/minecraft/server/PathfinderGoalSit.java 2014-11-28 11:22:56.130823159 +0000
+++ src/main/java/net/minecraft/server/PathfinderGoalSit.java 2014-11-28 11:01:54.000000000 +0000
@@ -12,7 +12,7 @@
public boolean a() {
if (!this.entity.isTamed()) {
- return false;
+ return this.willSit && this.entity.getGoalTarget() == null; // CraftBukkit - Allow sitting for wild animals
} else if (this.entity.V()) {
return false;
} else if (!this.entity.onGround) {