mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-09 06:50:32 +08:00
Clear animal owner when untamed. Fixes BUKKIT-1482
This commit is contained in:
parent
0095add08c
commit
8bc42ba8c9
@ -52,6 +52,9 @@ public class CraftTameableAnimal extends CraftAnimals implements Tameable, Creat
|
|||||||
|
|
||||||
public void setTamed(boolean tame) {
|
public void setTamed(boolean tame) {
|
||||||
getHandle().setTamed(tame);
|
getHandle().setTamed(tame);
|
||||||
|
if (!tame) {
|
||||||
|
setOwnerName("");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isSitting() {
|
public boolean isSitting() {
|
||||||
|
Loading…
Reference in New Issue
Block a user