mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-11 17:15:07 +02:00
Adding saddles to horses should properly tame horses.
This commit is contained in:
@@ -232,8 +232,10 @@ public enum MobData
|
|||||||
}
|
}
|
||||||
else if (this.value.equals(Data.HORSESADDLE))
|
else if (this.value.equals(Data.HORSESADDLE))
|
||||||
{
|
{
|
||||||
((Horse)spawned).setTamed(true);
|
final Horse horse = ((Horse)spawned);
|
||||||
((Horse)spawned).getInventory().setSaddle(new ItemStack(Material.SADDLE, 1));
|
horse.setTamed(true);
|
||||||
|
horse.setOwner(target);
|
||||||
|
horse.getInventory().setSaddle(new ItemStack(Material.SADDLE, 1));
|
||||||
}
|
}
|
||||||
else if (this.value.equals(Data.PIGSADDLE))
|
else if (this.value.equals(Data.PIGSADDLE))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user