mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
Clear animal owner when untamed. Fixes BUKKIT-1482
This commit is contained in:
parent
0095add08c
commit
8bc42ba8c9
1 changed files with 3 additions and 0 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue