Clear animal owner when untamed. Fixes BUKKIT-1482

By: Ammar Askar <ammar_askar@hotmail.com>
This commit is contained in:
CraftBukkit/Spigot 2012-06-17 23:18:00 +05:00
parent f54cb1e14e
commit 474a9e54a8

View file

@ -52,6 +52,9 @@ public class CraftTameableAnimal extends CraftAnimals implements Tameable, Creat
public void setTamed(boolean tame) {
getHandle().setTamed(tame);
if (!tame) {
setOwnerName("");
}
}
public boolean isSitting() {