mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-04-25 16:09:44 +00:00
Adding saddles to horses should properly tame horses.
This commit is contained in:
parent
872df26e9d
commit
beef371ae6
1 changed files with 4 additions and 2 deletions
|
@ -232,8 +232,10 @@ public enum MobData
|
|||
}
|
||||
else if (this.value.equals(Data.HORSESADDLE))
|
||||
{
|
||||
((Horse)spawned).setTamed(true);
|
||||
((Horse)spawned).getInventory().setSaddle(new ItemStack(Material.SADDLE, 1));
|
||||
final Horse horse = ((Horse)spawned);
|
||||
horse.setTamed(true);
|
||||
horse.setOwner(target);
|
||||
horse.getInventory().setSaddle(new ItemStack(Material.SADDLE, 1));
|
||||
}
|
||||
else if (this.value.equals(Data.PIGSADDLE))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue