Clear animal owner when untamed. Fixes BUKKIT-1482

This commit is contained in:
Ammar Askar 2012-06-17 23:18:00 +05:00 committed by Wesley Wolfe
parent 0095add08c
commit 8bc42ba8c9

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() {