From beef371ae658c248e51b85128f17f659c46ec7de Mon Sep 17 00:00:00 2001 From: KHobbits Date: Sun, 24 Nov 2013 16:04:06 +0000 Subject: [PATCH] Adding saddles to horses should properly tame horses. --- Essentials/src/com/earth2me/essentials/MobData.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Essentials/src/com/earth2me/essentials/MobData.java b/Essentials/src/com/earth2me/essentials/MobData.java index f23c85091..0ce94c150 100644 --- a/Essentials/src/com/earth2me/essentials/MobData.java +++ b/Essentials/src/com/earth2me/essentials/MobData.java @@ -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)) {