From 1e7d13dfee0e3dfe4eb5956e55c0ff9eaffd58d9 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 31 Dec 2012 14:00:55 -0600 Subject: [PATCH] Fix "setSitting" on tameable animals. Fixes BUKKIT-1534 This makes it so animals (tame or not) will sit properly and not move around. Wild animals that are sitting may override the sitting position if they are attacking. By: feildmaster --- .../org/bukkit/craftbukkit/entity/CraftTameableAnimal.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java index 8fb8629bc0..0134bda7f0 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftTameableAnimal.java @@ -62,8 +62,7 @@ public class CraftTameableAnimal extends CraftAnimals implements Tameable, Creat } public void setSitting(boolean sitting) { - getHandle().setSitting(sitting); - getHandle().setPathEntity(null); + getHandle().q().a(sitting); } @Override